Matchers build up their error messages by appending to Description objects. This interface is implemented by StringDescription. This interface is unlikely to need other implementations, but could be useful to replace in some cases - e.g. language conversion.

Constructors

Description()

Properties

length int

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

add(String text) Description

This is used to add arbitrary text to the description.

addAll(String start, String separator, String end, Iterable list) Description

This is used to add a description of an Iterable list, with appropriate start and end markers and inter-element separator.

addDescriptionOf(value) Description

This is used to add a meaningful description of a value.

replace(String text) Description

Change the value of the description.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited