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