resetError method

Future<void> resetError()

Implementation

Future<void> resetError() async {
  _setErrorDecorationTween(
    errorDecorationTween.end!,
    _isOpen ? _resultOptions.openBoxDecoration : _resultOptions.boxDecoration,
  );
  _errorController.reset();
  await _errorController.forward();
  _onError?.call(false);
  _isError = false;
}