getConnectedDevices method

Future<List<WearOsDevice>> getConnectedDevices()

Get current connected devices

This method returns a List of WearOsDevice

Implementation

Future<List<WearOsDevice>> getConnectedDevices() async {
  List rawNodes = await channel.invokeMethod("getConnectedDevices");
  return rawNodes.map((nodeJson) {
    return WearOsDevice.fromRawData(channel, (nodeJson as Map? ?? {}));
  }).toList();
}