CustomRule class
Rule that accepts function for validating the value. The output of the function is recognized as a message.
If the function returns null the rule will see that as if there was no errors.
- Inheritance
-
- Object
- SuperFormFieldRule
- CustomRule
Constructors
- CustomRule(String? validator(dynamic value))
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
validate(
dynamic value) → ValidationError? -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited