selectPrinter method

void selectPrinter(
  1. String host, {
  2. int port = 9100,
  3. Duration timeout = const Duration(seconds: 5),
})

Select a network printer

timeout is used to specify the maximum allowed time to wait for a connection to be established.

Implementation

void selectPrinter(
  String host, {
  int port = 9100,
  Duration timeout = const Duration(seconds: 5),
}) {
  _host = host;
  _port = port;
  _timeout = timeout;
}