hasErrors property
bool
hasErrors
True whether the control has validation errors.
Implementation
bool get hasErrors => errors.isNotEmpty;
True whether the control has validation errors.
bool get hasErrors => errors.isNotEmpty;