muteAudio method
Implementation
@override
void muteAudio(bool muteAudio, onSuccess, onError) async {
try {
final result = await methodChannel.invokeMethod<String>('muteAudio', {
"flag": muteAudio,
});
onSuccess(result ?? "success");
} on PlatformException catch (platformException) {
onError(CometChatCallsException(platformException.code,
platformException.message, platformException.details));
} catch (e) {
onError(CometChatCallsException(
CometChatCallsConstants.codeError, e.toString(), e.toString()));
}
}