validator method
This method returns null if the field is valid. Otherwise it will return the error's string specified in the validator (see Validator).
Implementation
@override
String? validator([Object? object]) {
sendForceErrorEvent();
for (final form in forms) {
if (!form.isComplete()) {
return form.getFirstError();
}
}
return super.validator(object);
}