ZebraPrinter constructor

ZebraPrinter(
  1. String id, {
  2. String? label,
  3. required void notifierFunction(
    1. ZebraPrinter
    ),
  4. Function? statusListener,
})

Implementation

ZebraPrinter(String id, {String? label, required void Function(ZebraPrinter) notifierFunction,Function? statusListener}) {
  channel = MethodChannel('ZebraPrinterInstance$id');
  log("ZebraPrinterInstanceCreated: $id  (${label ?? id})");
  instanceID = label == null ? id : "$id ($label)";
  notifier = notifierFunction;
  channel.setMethodCallHandler(_printerMethodCallHandler);
  broadCastStatus(statusListener);
}