isMuted method

  1. @override
Future<bool> isMuted()

Determine whether the audio is muted.
Return true if the audio is muted, otherwise false.

Implementation

@override
Future<bool> isMuted() async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<bool>('isMuted', params)
      .then<bool>((bool? value) => value ?? false);
}