print method

void print({
  1. required String data,
})

Implementation

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

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