value property

Future<T> value

The result of this operation, if not cancelled.

This future will not complete if the operation is cancelled. Use valueOrCancellation for a future which completes both if the operation is cancelled and if it isn't.

Implementation

Future<T> get value => _completer._inner?.future ?? Completer<T>().future;