sendCommandBin method

Future<bool> sendCommandBin(
  1. Uint8List data
)

Sends the given commend to the printer. @param message command to send.

Implementation

Future<bool> sendCommandBin(Uint8List data) async {
  var params = {
    "printerId": _printerId,
    "printInfo": _printerInfo.toMap(),
    "data": data
  };

  final bool success =
      await _channel.invokeMethod("typeB-sendCommandBin", params);
  return success;
}