FlutterThermalPrinterNetwork constructor
FlutterThermalPrinterNetwork(})
timeout bounds connecting. writeTimeout bounds handing a ticket to
the network; a printer that stops reading fails the print after it.
Implementation
FlutterThermalPrinterNetwork(
String host, {
int port = 9100,
Duration timeout = const Duration(seconds: 5),
Duration writeTimeout = const Duration(seconds: 30),
}) : _host = host,
_port = port,
_timeout = timeout,
_writeTimeout = writeTimeout;