discoverServices static method
Implementation
static Future<List<NetworkService>> discoverServices({
required String serviceType,
int timeoutSeconds = 10,
}) async {
try {
final List<dynamic> result = await _channel.invokeMethod('discoverServices', {
'serviceType': serviceType,
'timeoutSeconds': timeoutSeconds,
});
return result.map((e) => NetworkService.fromMap(Map<String, dynamic>.from(e))).toList();
} on PlatformException {
return [];
}
}