StringDescription class
The default implementation of Description. This should rarely need substitution, although conceivably it is a place where other languages could be supported.
- Implemented types
Constructors
- StringDescription.new([String init = ''])
-
Initialize the description with initial contents
init.
Properties
Methods
-
add(
String text) → Description -
Append
textto the description.override -
addAll(
String start, String separator, String end, Iterable list) → Description -
Append an Iterable
listof objects to the description, using the specifiedseparatorand framing the list withstartandend.override -
addDescriptionOf(
Object? value) → Description -
Appends a description of
value. If it is an IMatcher use its describe method; if it is a string use its literal value after escaping any embedded control characters; otherwise use its toString() value and wrap it in angular "quotes".override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
String text) → Description -
Change the value of the description.
override
-
toString(
) → String -
Get the description as a string.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited