printText method
Implementation
@override
Future<bool> printText(
Printer device,
Uint8List data, {
String? path,
}) async =>
await methodChannel.invokeMethod('printText', {
'vendorId': device.vendorId.toString(),
'productId': device.productId.toString(),
'name': device.name,
'data': List<int>.from(data),
'path': path ?? '',
});