hasError property
bool
get
hasError
Whether the state currently contains an error.
Implementation
bool get hasError => error != null;
Whether the state currently contains an error.
bool get hasError => error != null;