MuteState booltoMuteState(bool? isMuted) => isMuted != null && isMuted ? MuteState.muted : MuteState.unmuted;