getNetworkDevices static method
Returns a list of available network devices.
Implementation
static Future<List<Connector>> getNetworkDevices(int timeout) async {
var params = {
"timeout": timeout,
};
final List<dynamic> resultList =
await _channel.invokeMethod("getNetworkDevices", params);
List<Connector> foundDevices =
resultList.map((dartDevice) => Connector.fromMap(dartDevice)).toList();
print("Received Connections: $foundDevices");
return foundDevices;
}