asFuture property

Future<T> asFuture

Returns a Future of this instance.

Implementation

Future<T> get asFuture =>
    this is Future ? this as Future<T> : Future<T>.value(this);