auto method

void auto(
  1. HasDisposers obs, {
  2. FutureOr onItem(
    1. T item
    )?,
})

Implementation

void auto(HasDisposers obs, {FutureOr onItem(T item)?}) {
  this.listen(onItem ?? _doNothing, cancelOnError: false).auto(obs);
}