lcdString static method

Future<String?> lcdString(
  1. String text, {
  2. required int size,
  3. required bool fill,
})

Sends a text string to the LCD screen.

text: The text to display. size: The font size for the text. fill: Whether to fill the remaining space on the LCD with blank characters.

Returns a String message from the printer if successful, or null otherwise.

Implementation

static Future<String?> lcdString(String text,
    {required int size, required bool fill}) async {
  return await SunmiPrinterPlusPlatform.instance
      .sendTextLCD(text: text, size: size, fill: fill);
}