asFuture property

Future<T> get asFuture

Returns a Future of this instance.

Implementation

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