writeText static method
Printes the text
using bluetooth printer.
Implementation
static Future<String?> writeText(String text) async {
try {
final String? result = await _channel.invokeMethod('printText', text);
return result;
} on PlatformException catch (e) {
print("Failed to writeText: '${e.message}'.");
return "false";
}
}