Task<A> constructor
- Future<
A> task(
Factory constructor that creates a task from a computation.
Implementation
factory Task(Future<A> Function() task) = _Task<A>;
Factory constructor that creates a task from a computation.
factory Task(Future<A> Function() task) = _Task<A>;