Description class
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.
- Implementers
Constructors
Properties
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 appropriatestart
andend
markers and inter-elementseparator
. -
addDescriptionOf(
dynamic 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
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited