hasError property
bool
get
hasError
Returns true if the model has any field-specific or general errors.
This is a convenience getter that checks if either errors or generalErrors contain any messages. Useful for quick validation checks before processing the model further.
Implementation
bool get hasError => errors.isNotEmpty;