toggleMute method

  1. @override
Future<bool?> toggleMute(
  1. bool isMuted
)
override

Toggle mute on/off. Returns true if successful, false otherwise.

Implementation

@override
Future<bool?> toggleMute(bool isMuted) async {
  Logger.logLocalEvent(isMuted ? "Mute" : "Unmute", prefix: "");
  if (_jsCall != null) {
    _jsCall!.mute(isMuted);
  }
  return isMuted;
}