discover static method

Future<List<NetWorkPrinter>> discover()

discover let you explore all netWork printer in your network

Implementation

static Future<List<NetWorkPrinter>> discover() async {
  var results = await findNetworkPrinter();
  return [
    ...results
        .map((e) => NetWorkPrinter(
              id: e,
              name: e,
              address: e,
              type: 0,
            ))
        .toList()
  ];
}