EmailValidator class

Validator for email value. Backed with email_validator package to provide proper validation.

Inheritance

Constructors

EmailValidator({String? fieldName, String? errorMessage, bool allowTopLevelDomains = false, bool allowInternational = true})
const
EmailValidator.withMessage(String message, {bool allowTopLevelDomains = false, bool allowInternational = true})
const

Properties

allowInternational bool
final
allowTopLevelDomains bool
final
hashCode int
The hash code for this object.
no setterinherited
ignoreNullable bool
If validation can be invoked on null values.
finalinherited
message String
Validation error message.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(String? value) String?
Invoke validation
inherited
isValid(String? value) bool
Validation function
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited