Observer<T>.next constructor

Observer<T>.next(
  1. NextCallback<T> next, {
  2. bool ignoreErrors = false,
})

An observer that is only interested in values.

By default errors are passed to the defaultErrorHandler, unless ignoreErrors is set to true.

Implementation

factory Observer.next(NextCallback<T> next, {bool ignoreErrors = false}) =>
    BaseObserver<T>(next, ignoreErrors ? emptyFunction2 : defaultErrorHandler,
        emptyFunction0);