connect method
Implementation
Future<PosPrintResult> connect(String host,
{int port = 91000, Duration timeout = const Duration(seconds: 5)}) async {
_host = host;
_port = port;
return await ensureConnected(timeout: timeout);
}
Future<PosPrintResult> connect(String host,
{int port = 91000, Duration timeout = const Duration(seconds: 5)}) async {
_host = host;
_port = port;
return await ensureConnected(timeout: timeout);
}