writeBytes static method

Future<String?> writeBytes(
  1. List<int> bytes
)

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";
  }
}