scanNetwork method

Future<List<DiscoveredPrinter>> scanNetwork(
  1. String subnet
)

Printers answering on 631 / 9100 in a /24 ("192.168.1"; empty: every local one).

Implementation

Future<List<DiscoveredPrinter>> scanNetwork(String subnet) async =>
    (await sp.Discovery.scanNetwork(prefix: subnet.isEmpty ? null : subnet)).map(DiscoveredPrinter._of).toList();