setError method
Set the error with optional stackTrace to AsyncError
Implementation
@override
void setError(Object error, [StackTrace? stackTrace]) {
super.setError(error, stackTrace);
if (cancelOnError == true) {
_finish();
}
}
Set the error with optional stackTrace to AsyncError
@override
void setError(Object error, [StackTrace? stackTrace]) {
super.setError(error, stackTrace);
if (cancelOnError == true) {
_finish();
}
}