print method

void print(
  1. String data
)

Implementation

void print(String data) {
  if (!data.contains("^PON")) data = data.replaceAll("^XA", "^XA^PON");

  if (isRotated) {
    data = data.replaceAll("^PON", "^POI");
  }
  channel.invokeMethod("print", {"Data": data});
}