FormErrorMessages class
A class that contains the default form error messages.
You can override the default messages by providing a custom FormErrorMessages instance to the HookFormScope widget.
Constructors
- FormErrorMessages.new()
-
Creates a FormErrorMessages instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidEmail → String
-
The default invalid email message.
no setter
- invalidPhone → String
-
The default invalid phone message.
no setter
- required → String
-
The default required message.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dateAfter(
DateTime date) → String - The default date after message.
-
dateBefore(
DateTime date) → String - The default date before message.
-
invalidFileFormat(
Set< String> allowedTypes) → String - The default invalid file format message.
-
maxItems(
int count) → String - The default maximum items message.
-
maxLength(
int length) → String - The default maximum length message.
-
minItems(
int count) → String - The default minimum items message.
-
minLength(
int length) → String - The default minimum length message.
-
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