printText method
Future<void>
printText(
- String text,
- PrintTextStyle? style, {
- int? textWidth,
- 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);
}