Description class abstract

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

Description()

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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(Object? value) Description
This is used to add a meaningful description of a value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace(String text) Description
Change the value of the description.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited