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

hashCode int
The hash code for this object.
no setterinherited
message String
The error message to be displayed when the validation fails.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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