updateMuted method

  1. @internal
void updateMuted(
  1. bool muted,
  2. {bool shouldNotify = true,
  3. bool shouldSendSignal = false}
)

Implementation

@internal
void updateMuted(
  bool muted, {
  bool shouldNotify = true,
  bool shouldSendSignal = false,
}) {
  if (_muted == muted) return;
  _muted = muted;
  if (shouldNotify) {
    events.emit(InternalTrackMuteUpdatedEvent(
      track: this,
      muted: muted,
      shouldSendSignal: shouldSendSignal,
    ));
  }
}