getDevicesList method Null safety

Future<Map?> getDevicesList(
  1. int type
)

Get the list of devices

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, TXMediaDeviceTypeSpeaker, or TXMediaDeviceTypeCamera.

Implementation

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