toFuture method

Future<T> toFuture()

Returns a Future, wrapping the value if it's not already one.

Implementation

@pragma('vm:prefer-inline')
Future<T> toFuture() => Future.value(this);