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 and predicate function.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
predicate bool Function(String? input)
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 provided input using the custom validation rule.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited