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

Constructors

CustomRule(String? validator(dynamic value))

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator String? Function(dynamic value)
final

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