pause method

void pause()

Pauses stream from emitting more data. It's safe to call this even if the stream is already paused. Use resume to resume the operation.

Implementation

void pause() {
  if (!_subscription.isPaused) {
    _subscription.pause();
  }
}