connectToPrinter method
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);
}