toFuture method

  1. @override
Future toFuture()
override

Returns a Future which is either:

  • resolved with task's return value
  • rejected with task's thrown error

Implementation

@override
Future toFuture() {
  throw InvalidOperation();
}