printText method

  1. @override
Future<void> printText(
  1. String text,
  2. PrintTextStyle? style, {
  3. int? textWidth,
  4. PrintAlign? align,
})
override

Implementation

@override
Future<void> printText(String text, PrintTextStyle? style,
    {int? textWidth, PrintAlign? align}) async {
  Map<String, dynamic> args = <String, dynamic>{
    'text': text,
    'style': style?.toMap(),
    'textWidth': textWidth,
    'align': align?.index
  };
  return await methodChannel.invokeMethod<void>('printText', args);
}