selectPrinter method
void
selectPrinter(})
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;
}