hasError property

bool get hasError

Whether the state currently contains an error.

Implementation

bool get hasError => error != null;