printText method

Future<void> printText(
  1. String text, {
  2. PrintStyle printStyle = const PrintStyle(),
})

Print Text

Add custom style using PrintStyle with values. like alignment, text size, and font style.

Implementation

Future<void> printText(String text, {PrintStyle printStyle = const PrintStyle()}) async {
  IminPrinterPlatform.instance.printText(text, printStyle);
}