FormCraftEmailValidator class
A validator implementation for validating email addresses.
The validate method checks if the email is not empty and follows a valid email format.
Returns an error message if validation fails, otherwise returns null
.
- Implemented types
Constructors
- FormCraftEmailValidator([String message = 'Email is not valid'])
-
Constructs a FormCraftEmailValidator with the specified error
message
.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String input) → String? -
Validates the given input and returns an error message if validation fails.
Returns
null
if the input is valid.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited