connectToPrinter method

Future<bool?> connectToPrinter(
  1. String ipAddress,
  2. String port
)

Opens a WiFi socket to the printer at ipAddress:port.

Returns true on success, false when the printer refuses the connection. Throws a String description on error.

Implementation

Future<bool?> connectToPrinter(String ipAddress, String port) {
  return _repository.connectToPrinter(ipAddress, port);
}