error property

dynamic error

Error value if this completed with an error

Null otherwise.

Implementation

dynamic get error => status == FutureStatus.rejected ? _result.result : null;