setError method

  1. @override
void setError(
  1. Object error, [
  2. StackTrace? stackTrace
])
override

Set the error with optional stackTrace to AsyncError

Implementation

@override
void setError(Object error, [StackTrace? stackTrace]) {
  super.setError(error, stackTrace);
  if (cancelOnError == true) {
    _finish();
  }
}