hasError property
bool
get
hasError
Returns true if error
is not null, otherwise false.
Implementation
bool get hasError => error != null;
Returns true if error
is not null, otherwise false.
bool get hasError => error != null;