error method

Future<void> error()

Implementation

Future<void> error() async {
  if (_isError) return;
  _setErrorDecorationTween(
      _resultOptions.boxDecoration, _resultOptions.errorBoxDecoration);
  _onError?.call(true);
  _isError = true;
  _errorController.reset();
  await _errorController.forward();
}