asFuture property

Future<Null> asFuture
override

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

Implementation

@override
Future<Null> get asFuture => Future<Null>.error(error, stackTrace);