innerValidate method
Returns true or false depending on the validation process. This method is then used by the ValidatorWithStaticError.validate method to return a static error if the result is false.
Implementation
@override
bool innerValidate(String? value) {
return value == null || RegExp(emailRegex).hasMatch(value.trim());
}