CustomValidator class
final
Constructors
-
CustomValidator(ValidatorCallback<String> validator)
-
A validator that checks if a value matches a specified regular expression.
const
Properties
-
errorMessage
→ String?
-
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
validator
→ ValidatorCallback<String>
-
The custom validation function to use.
The validator parameter specifies the custom validation function to use.
final
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? value)
→ String?
-
Validates the given
value
and returns an error message if the value is invalid.
override