pause method

void pause()

Pause the stream subscription

Stops receiving events from the stream without unsubscribing. Call resume to continue receiving events.

Implementation

void pause() {
  if (_isPaused || _subscription == null) return;
  _subscription!.pause();
  _isPaused = true;
  ZenLogger.logDebug('Stream paused: $queryKey');
}