AsyncValidationRule<T, U> class
A rule may represent a constraint, matcher..etc
- Inheritance
-
- Object
- ValidationRuleBase<
T, Future< ValidationResult< >U> > - AsyncValidationRule
Constructors
-
AsyncValidationRule({required Future<
bool> ruler(T), required U negativeFeedback})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- negativeFeedback → U
-
final
-
ruler
→ Future<
bool> Function(T) -
A predicate that represents your rule
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
T value) → Future< ValidationResult< U> > -
Checks the state of the
value
according to the specified ruleroverride -
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