doMuted method
Perform the provided function while muted, then return to previous mute state.
Implementation
void doMuted(Function fn) {
var previousMute = _muted;
mute();
fn.call();
previousMute ? mute() : unmute();
}
Perform the provided function while muted, then return to previous mute state.
void doMuted(Function fn) {
var previousMute = _muted;
mute();
fn.call();
previousMute ? mute() : unmute();
}