EmailValidator constructor

const EmailValidator({
  1. String? fieldName,
  2. String? errorMessage,
  3. bool allowTopLevelDomains = false,
  4. bool allowInternational = true,
})

Implementation

const EmailValidator({
  String? fieldName,
  String? errorMessage,
  this.allowTopLevelDomains = false,
  this.allowInternational = true,
}) : super(
        fieldName: fieldName,
        message: errorMessage ?? 'value should be a valid email',
      );