doOnDone method

Observable<T> doOnDone (
  1. void onDone(
      )
    )
    inherited

    Invokes the given callback function when the stream finishes emitting items. In other implementations, this is called doOnComplete(d).

    Example

    new Observable.fromIterable([1, 2, 3])
      .doOnDone(() => print("all set"))
      .listen(null); // prints "all set"
    

    Implementation

    Observable<T> doOnDone(void onDone()) =>
        transform(DoStreamTransformer<T>(onDone: onDone));