SuccessMatcher class

Matcher returned by haveSucceededWith. Chain andValue to also assert the value.

Inheritance

Constructors

SuccessMatcher(List<String> _expectedOutcomes)
Creates a matcher that checks only the outcomes of a Success.

Properties

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

Methods

andValue(Object? value) SuccessMatcher
Also asserts value — accepts a plain value (wrapped in equals) or any Matcher.
describe(Description description) Description
Builds a textual description of the matcher.
override
describeMismatch(dynamic item, Description mismatchDescription, Map<Object?, Object?> matchState, bool verbose) Description
Builds a textual description of a specific mismatch.
override
matches(dynamic item, Map<Object?, Object?> matchState) bool
Does the matching of the actual vs expected values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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