DateOfBirthValidator class

Inheritance

Constructors

DateOfBirthValidator.new({int? minAgeYears, int? maxAgeYears, int? minAgeMonths, int? maxAgeMonths, String? errorText})

Properties

errorText String?
final
hashCode int
The hash code for this object.
no setterinherited
maxAgeMonths int?
final
maxAgeYears int?
final
minAgeMonths int?
final
minAgeYears int?
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(Object? value, {String? fieldName}) FutureOr<String?>
This validator type supports asynchronous validation It might come useful e.g. if you need to make some backend validation of the data entered into your form. With this validator you don't have to invent a custom approach to validate anything. Just do all of your asynchronous work inside the validator's body and then return the result. returns Returns an error text if the validation fails. If it returns null then the validation is successful
override

Operators

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