updateQueueMode method

  1. @internal
void updateQueueMode(
  1. bool newValue,
  2. {bool shouldEmitQueued = true}
)

Implementation

@internal
void updateQueueMode(bool newValue, {bool shouldEmitQueued = true}) {
  // check if already disposed
  if (isDisposed) {
    logger.warning('failed to update queueMode on a disposed emitter');
    return;
  }
  if (_queueMode == newValue) return;
  _queueMode = newValue;
  if (!_queueMode && shouldEmitQueued) emitQueued();
}