isError property

bool get isError

Whether this state represents an error.

Implementation

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