printText method

Future<String?> printText(
  1. String textData, {
  2. String x = '0',
  3. String y = '0',
  4. int type = 0,
  5. String orientation = 'N',
  6. int size = 3,
})

Prints textData as a text label.

Parameters:

  • x, y – origin coordinates in dots.
  • type – font: 0–6 = standard fonts, 7 = Chinese.
  • orientation – rotation: 'N', 'R', 'I', 'B'.
  • size – font size: 1=10px, 2=20px, 3=30px (default), 4=40px, 5=50px, 6=60px.

Implementation

Future<String?> printText(
  String textData, {
  String x = '0',
  String y = '0',
  int type = 0,
  String orientation = 'N',
  int size = 3,
}) {
  return _repository.printText(
    textData,
    x: x,
    y: y,
    type: type,
    orientation: orientation,
    size: size,
  );
}