Validators class abstract

Returns a FormFieldValidator validating if the value of a FormFieldState is null or empty.

Constructors

Validators()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Operators

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

Static Methods

compose<T>(List<FormFieldValidator<T>> validators) FormFieldValidator<T>
Returns a FormFieldValidator that merges a list of FormFieldValidator.
max(num max, ErrorTextBuilderWithConstraint<num, num> errorTextBuilder) FormFieldValidator<num>
Returns a FormFieldValidator validating if the num value of a FormFieldState is bigger than max.
maxLength<T>(int maxLength, ErrorTextBuilderWithConstraint<T, int> errorTextBuilder) FormFieldValidator<T>
Returns a FormFieldValidator validating if the value of a FormFieldState exceeds a maximum length of maxLength.
min(num min, ErrorTextBuilderWithConstraint<num, num> errorTextBuilder) FormFieldValidator<num>
Returns a FormFieldValidator validating if the num value of a FormFieldState is smaller than min.
minLength<T>(int minLength, ErrorTextBuilderWithConstraint<T, int> errorTextBuilder) FormFieldValidator<T>
Returns a FormFieldValidator validating if the value of a FormFieldState has a minimum length of minLength.
pattern(Pattern pattern, ErrorTextBuilderWithConstraint<String, Pattern> errorTextBuilder) FormFieldValidator<String?>
Returns a FormFieldValidator validating if the String value of a FormFieldState matches a certain pattern.
required<T>(ErrorTextBuilder<T> errorTextBuilder) FormFieldValidator<T>
requiredTrue(ErrorTextBuilder<bool> errorTextBuilder) FormFieldValidator<bool>
Returns a FormFieldValidator validating if the bool value of a FormFieldState is true.