AsyncValidatorExecutor<T extends Object> class

Handles asynchronous (Future based) validation logic.

Inheritance

Constructors

AsyncValidatorExecutor({Equality<T?>? equality, AsyncErrorHandler? canceledValidationErrorHandler, String? debugLabel})
Creates a new AsyncValidatorExecutor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AsyncOperationStatus
AsyncOperationStatus of this invoker.
no setterinherited
validating bool
Indicates that whether this executor validating asynchronously or not.
no setter

Methods

cancel() → void
Cancels pending operation.
inherited
execute(ValidationInvocation<T?> parameter) String?
Execute the asynchronous operation.
inherited
executeAsync(ValidationInvocation<T?> parameter) FutureOr<String?>
Do actual asynchronous operation. Note that the override can call AsyncOperationNotifier.onProgress in arbitrary timings and frequrencies.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset(String? newDefaultResult) → void
Resets this operation state to initial state with specified new initial value.
inherited
toString() String
A string representation of this object.
inherited
validate({required AsyncValidator<T> validator, required T? value, required Locale locale, required AsyncValidationCompletionCallback onCompleted, required AsyncValidationFailureHandler failureHandler}) String?
Validates specified value with specified AsyncValidator and Locale.

Operators

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