text method
Implementation
List<int> text(
String text, {
PosStyles styles = const PosStyles(),
int linesAfter = 0,
int? maxCharsPerLine,
}) {
List<int> bytes = [];
bytes += _text(
_encode(text),
styles: styles,
maxCharsPerLine: maxCharsPerLine,
);
// Ensure at least one line break after the text
bytes += emptyLines(linesAfter + 1);
return bytes;
}