getCurrentDeviceMute method Null safety

Future<bool?> getCurrentDeviceMute(
  1. int type
)

Query the mute status of the current device

Note: this API supports only the macOS and Windows platforms

Parameters:

type Device type, which specifies the type of devices to be obtained. For more information, please see the definition of TXMediaDeviceType. type can only be TXMediaDeviceTypeMic or TXMediaDeviceTypeSpeaker.

Returned value:

true: the current device is muted; false: the current device is not muted

Implementation

Future<bool?> getCurrentDeviceMute(int type
    ) {
  return _channel.invokeMethod('getCurrentDeviceMute', {
    "type": type
  });
}