value property
T
get
value
Returns the completed value.
Throws a StateError if the PollableFuture has not yet completed. Callers should check isCompleted first.
Implementation
T get value {
if (_futureOrValue case T value) {
return value;
}
throw StateError('Future not yet completed');
}