printText method
Implementation
@override
Future<void> printText(String text) async {
try {
await const MethodChannel('t6_pos_printer_plugin').invokeMethod('printReceipt', {'text': text});
} catch (e) {
throw Exception('Failed to print: $e');
}
}