Observer<T>.complete constructor

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

An observer that is only interested in completions.

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

Implementation

factory Observer.complete(CompleteCallback complete,
        {bool ignoreErrors = false}) =>
    BaseObserver<T>(emptyFunction1,
        ignoreErrors ? emptyFunction2 : defaultErrorHandler, complete);