updateQueueMode method
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();
}