ValidationInvocation<T> class

Represents asynchronous validation invocation.

This class defines callbacks to compliant with AsyncOperationNotifier which is required from FutureInvoker.

Implemented types

Constructors

ValidationInvocation({required AsyncValidator<T> validator, required T value, required Locale locale, required AsyncOperationCompletedCallback<String?> onCompleted, required AsyncOperationFailedCallback onFailed, required AsyncOperationFailureHandler<String?> failureHandler})
Creates a new ValidationInvocation.

Properties

failureHandler AsyncOperationFailureHandler<String?>
Called when the asynchronous operation failed with error. This call back will be called by FutureInvoker, so the asynchronous operation should not call this callback.
final
hashCode int
The hash code for this object.
no setterinherited
locale Locale
Current Locale to localize validation message.
final
onCompleted AsyncOperationCompletedCallback<String?>
Called when the asynchronous operation completed successfully. This call back will be called by FutureInvoker, so the asynchronous operation should not call this callback.
final
onFailed AsyncOperationFailedCallback
Called when the asynchronous operation completed with failure. This call back will be called by FutureInvoker, so the asynchronous operation should not call this callback.
final
onProgress AsyncOperationProgressCallback<void>
Called when the asynchronous operation have some progress. This call back will not be called by FutureInvoker, so the asynchronous operation should call this callback its own timings, and it is OK to avoid calling this callback at all. The parameter type and its values are determined by asynchronous operation, it should tells progress degreen in quantitive or qualitative, and any extra information including the label to distinguish among concurrent asynchronous operations by caller (that is, callback receiver).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator AsyncValidator<T>
Validation logic, which accepts value and onProgress callback.
final
value → T
Actual validating value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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