getZebraPrinterInstance method

  1. @override
Future<ZebraPrinter> getZebraPrinterInstance({
  1. String? label,
  2. required void notifier(
    1. ZebraPrinter
    ),
  3. Function? statusListener,
})
override

Implementation

@override
Future<ZebraPrinter> getZebraPrinterInstance({String? label, required void Function(ZebraPrinter) notifier,Function? statusListener}) async {
  getPermissions();
  String id = await methodChannel.invokeMethod("getInstance");
  ZebraPrinter printer = ZebraPrinter(id, label: label, notifierFunction: notifier,statusListener: statusListener);
  print("${printer.instanceID}");

  return printer;
}