text method

void text(
  1. String text, {
  2. PosStyles styles = const PosStyles(),
  3. int linesAfter = 0,
  4. bool containsChinese = false,
  5. int? maxCharsPerLine,
})

Implementation

void text(
  String text, {
  PosStyles styles = const PosStyles(),
  int linesAfter = 0,
  bool containsChinese = false,
  int? maxCharsPerLine,
}) {
  _socket.add(_generator.text(text,
      styles: styles,
      linesAfter: linesAfter,
      containsChinese: containsChinese,
      maxCharsPerLine: maxCharsPerLine));
}