cancelInvalidation method

void cancelInvalidation()

Cancels the current validation attempt.

The future returned by invalidate will receive an ValidationStatus.cancelled as a result of calling this method.

Implementation

void cancelInvalidation() {
  if (invalid) {
    _onValidate!.complete(ValidationStatus.cancelled);
  }
}