The default implementation of Description. This should rarely need substitution, although conceivably it is a place where other languages could be supported.

Implements
  • Description

Constructors

StringDescription([String init = '' ])

Initialize the description with initial contents init.

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

Append text to the description.

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

Append an Iterable list of objects to the description, using the specified separator and framing the list with start and end.

addDescriptionOf(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".

replace(String text) → Description

Change the value of the description.

toString() → String

Get the description as a string.

noSuchMethod(Invocation invocation) → dynamic

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

inherited