doOnResume method

Stream<T> doOnResume(
  1. void onResume()
)

Invokes the given callback function when the stream subscription resumes receiving items.

Example

final subscription = Stream.fromIterable([1])
  .doOnResume(() => print('Let's do this!'))
  .listen(null);

subscription.pause();
subscription.resume(); 'Let's do this!'

Implementation

Stream<T> doOnResume(void Function() onResume) =>
    DoStreamTransformer<T>(onResume: onResume).bind(this);