mute method

Future<bool> mute(
  1. Participant participant,
  2. bool isMuted

Stops playing a specific remote participant's audio to the local participant or stops playing the local participant's audio to the conference. The participant parameter refers to the participant who should be muted. The isMuted parameter enables and disables audio; true indicates that the SDK should mute the participant, false indicates that the participant should not be muted.


Future<bool> mute(Participant participant, bool isMuted) async {
  var arguments = {"participant": participant.toJson(), "isMuted": isMuted};
  var result = await _methodChannel.invokeMethod<bool>("mute", arguments);
  return Future.value(result);