getConnectedDevicesInfo method

Future<List> getConnectedDevicesInfo()

Get the all connected devices info. Info will be passed to success function

Implementation

Future<List> getConnectedDevicesInfo() async {
  try {
    final List result =
        await _channel.invokeMethod('getConnectedDevicesInfo');
    return result;
  } catch (error) {
    print(error);
  }
  return [];
}