Matcher class

The base class for all matchers.

matches and describe must be implemented by subclasses.

Subclasses can override describeMismatch if a more specific description is required when the matcher fails.

Implemented by

Constructors

Matcher()
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

describe(Description description) Description
Builds a textual description of the matcher.
describeMismatch(dynamic item, Description mismatchDescription, Map matchState, bool verbose) Description
Builds a textual description of a specific mismatch. [...]
matches(dynamic item, Map matchState) bool
Does the matching of the actual vs expected values. [...]
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