hasError property

bool get hasError

Returns true if the state is AsyncError.

Implementation

bool get hasError => this is AsyncError<T>;