error property Null safety

Object? error
final

The latest error object received by the asynchronous computation.

If this is non-null, hasError will be true.

If data is not null, this will be null.

Implementation

final Object? error;