discoverServices static method

Future<List<String>> discoverServices(
  1. dynamic address, {
  2. bool forceRefresh = false,
})

discoverServices will return a list of services List

Implementation

static Future<List<String>> discoverServices(address,
    {bool forceRefresh = false}) async {
  List? services = await _channel.invokeMethod("services", args: {
    "device": WinHelper.getDeviceFromAddress(address),
    "forceRefresh": forceRefresh,
  });
  return services?.map((e) => WinHelper.fromWindowsUuid(e)).toList() ?? [];
}