CustomValidator class
Inline custom validator — quick one-liners without subclassing.
- Inheritance
-
- Object
- FieldValidator
- CustomValidator
Constructors
-
CustomValidator(FutureOr<
String?> fn(dynamic value, Map<String, dynamic> formValues)) -
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(
dynamic value, Map< String, dynamic> formValues) → FutureOr<String?> -
Validates
valuein the context offormValues(all current field values).override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited