toggleMute method
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);
}
final sid = _getSid();
await _toggleAttribute(isMuted, sid!, CKCallAttributes.mute);
return isMuted;
}