hasError property

bool get hasError

Returns true if the state represents an error.

Implementation

bool get hasError => _status == AsyncStatus.error;