AsyncValidationRule<T, U> class

A rule may represent a constraint, matcher..etc

Inheritance

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 ruler
override
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