hasErrors property
bool
get
hasErrors
Checks if there are any validation errors.
Implementation
bool get hasErrors => errors.isNotEmpty;
Checks if there are any validation errors.
bool get hasErrors => errors.isNotEmpty;