asFuture property

Future<Null> asFuture
override

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

Implementation

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