Task<A> class
abstract
Abstract class Task
that represents a computation
that may produce a result of type A
in the future.
Example:
Task<int> sampleTask = Task<int>(() => Future.value(10));
Constructors
Properties
Methods
-
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