FormCraftCustomValidator class
A custom validator for use with the FormCraft form validation framework.
This class extends FormCraftValidator and allows the definition of a custom validation rule based on a provided predicate function.
- Implemented types
Constructors
- FormCraftCustomValidator({required String message, required bool predicate(String? input)})
-
Constructs a FormCraftCustomValidator with the specified error
message
andpredicate
function.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 provided
input
using the custom validation rule.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited