hasErrors property
bool
get
hasErrors
Returns true if there are any errors
Implementation
bool get hasErrors => _errors.isNotEmpty;
Returns true if there are any errors
bool get hasErrors => _errors.isNotEmpty;