menu
flutter_auto_form package
documentation
flutter_auto_form.dart
FuncValidator<T> class
FuncValidator<T> class
dark_mode
light_mode
FuncValidator<
T
>
class
Inheritance
Object
Validator
<
T
>
ValidatorWithStaticError
<
T
>
FuncValidator
Constructors
FuncValidator
({
required
String
error
,
required
bool
isValid
(
T?
value
)
})
Properties
error
→
String
final
inherited
hashCode
→
int
The hash code for this object.
no setter
inherited
isValid
→
bool
Function
(
T?
value
)
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
innerValidate
(
T?
value
)
→
bool
Returns true or false depending on the validation process. This method is then used by the
ValidatorWithStaticError.validate
method to return a static error if the result is false.
override
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString
(
)
→
String
A string representation of this object.
inherited
validate
(
T?
value
)
→
String
?
This method should return null if the field is valid, a string corresponding to the error otherwise.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
flutter_auto_form package
documentation
flutter_auto_form
FuncValidator<T> class
auto_form library