value property

Future<T> get value

Completes with the returned value, or throws Cancelled with the cancellation stack trace, or throws the body's error.

Reading it marks the job observed, so nobody is asked to answer for a Failed outcome; any read counts, a print or a debugger's watch on the getter as well. Handle the error the future carries, or it becomes an unhandled Future error instead.

Implementation

Future<T> get value;