getConnectedDevices static method

Future<List<String>> getConnectedDevices()

Implementation

static Future<List<String>> getConnectedDevices() async {
  try {
    final List<dynamic> result = await _channel.invokeMethod('getConnectedDevices');
    return result.cast<String>();
  } on PlatformException {
    return [];
  }
}