FutureExpectation<Actual> class

A class holding matchers for Futures

Inheritance
Available Extensions

Properties

actual Future<Actual>
The value that is tested
finalinherited
hashCode int
The hash code for this object.
no setterinherited
not ExpectationBase<Future<Actual>, Future<void>, Actual>
Reverse the expectation
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createMatcher(Matcher match) → Matcher
Apply transformations to a matcher.
inherited
isA<T>() Future<void>
Returns a matcher that matches objects with type T.
inherited
isNull() Future<void>
A matcher that matches any null value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runMatcher(Matcher match) Future<void>
Expect that actual matches with a Matcher from the Dart SDK.
override
toBe(Actual expected) Future<void>
Returns a matches that matches if the value is the same instance as expected, using identical.
inherited
toBeFalsy() Future<void>
Returns a matcher that matches any value to be false or null.
inherited
toBeNull() Future<void>
A matcher that matches any null value.
inherited
toBeTruthy() Future<void>
Returns a matcher that matches any value that is not false or null.
inherited
toContain(Object? expected) Future<void>
Returns a matcher that matches if the match argument contains the expected value.
inherited
toEqual(Actual expected, [int limit = 100]) Future<void>
Returns a matcher that matches if the value is structurally equal to expected.
inherited
toHaveLength(Object? matcher) Future<void>
Returns a matcher that matches if an object has a length property that matches matcher.
inherited
toMatch(Pattern re) Future<void>
Returns a matcher that matches if the match argument is a string and matches the regular expression given by re.
inherited
toString() String
A string representation of this object.
inherited

Operators

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