printLabel method

Future<bool> printLabel({
  1. int quantity = 1,
  2. int copy = 1,
})

Prints the configure label.

Implementation

Future<bool> printLabel({int quantity = 1, int copy = 1}) async {
  var params = {
    "printerId": _printerId,
    "printInfo": _printerInfo.toMap(),
    "quantity": quantity,
    "copy": copy
  };

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