CommandStreamReducer(T state, { bool sync: false, bool cancelOnError })

Source

CommandStreamReducer(this.state, {bool sync: false, this.cancelOnError}) {
  _controller = new StreamController<T>(
      onListen: _onListen,
      onCancel: _onCancel,
      onPause: () {
        _subscription.pause();
      },
      onResume: () {
        _subscription.resume();
      },
      sync: sync);
}