hasError property
bool
get
hasError
Checks if the model has any errors.
Implementation
bool get hasError => errors.isNotEmpty;
Checks if the model has any errors.
bool get hasError => errors.isNotEmpty;