AsyncPatternMatcher<I, O> class

Available Extensions

Constructors

AsyncPatternMatcher(List<_Case<I, dynamic, Future<O>>> _cases)

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

apply(I input) FutureOr<O?>
call(I input) FutureOr<O?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
otherwise(FutureOr<O> function(I input)) ClosedAsyncPatternMatcher<I, O>
toString() String
A string representation of this object.
inherited
when<T>(TransformingPredicate<I, Future<T>> predicate, O function(T input)) AsyncPatternMatcher<I, O>
when2<T1, T2>(TransformingPredicate<I, Future<Pair<T1, T2>>> predicate, FutureOr<O> function(T1 input1, T2 input2)) AsyncPatternMatcher<I, O>
whenIs<T>(Type type, O function(T input)) AsyncPatternMatcher<I, O?>

Operators

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