ConfirmPasswordRule class
Validates that this field's value matches the value of another field (e.g., Confirm Password).
- Implemented types
- Annotations
Constructors
-
ConfirmPasswordRule.new({required ValueGetter<
String?> passwordValueGetter, String? message}) -
Creates a confirm password rule.
passwordValueGetter
should return the current value of the password field.message
is the error message if the values don't match.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
final
-
passwordValueGetter
→ ValueGetter<
String?> -
A function that returns the value of the password field to compare against.
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? value, {BuildContext? context}) → String? -
Validates the given
value
. Returns an error message String if validation fails, otherwise returns `null].override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited