error property

Object? get error

The error from the async operation, if any.

Returns the error for AsyncError state, null for AsyncLoading and AsyncSuccess states.

Implementation

Object? get error =>
    this is AsyncError<T> ? (this as AsyncError<T>).error : null;