validate method

  1. @override
List<String>? validate(
  1. String? value
)
override

Implementation

@override
List<String>? validate(String? value) {
  if (value == null) return null;

  if (!regEx.hasMatch(value))
    return [ValidationErrorsLocalized.EMAIL_ADDRESS];

  return null;
}