setMuteState method

void setMuteState(
  1. bool isMuted
)

Sets the mute state and triggers the mute toggle callback.

Implementation

void setMuteState(bool isMuted) {
  isMutedNotifier.value = isMuted;
  callbacks.onMuteToggle?.call(isMuted);
}