asFuture property

  1. @override
Future<T> get asFuture
override

A future that has been completed with this result as a value or an error.

Implementation

@override
Future<T> get asFuture => Future.value(value);