hasError property

bool get hasError

Whether this state has an error.

Implementation

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