ZebraPrinter constructor

ZebraPrinter(
  1. String id,
  2. Function? onPrinterFound,
  3. Function? onPrinterDiscoveryDone,
  4. Function? onDiscoveryError,
  5. Function? onChangePrinterStatus, {
  6. Function? onPermissionDenied,
})

Implementation

ZebraPrinter(String id, this.onPrinterFound, this.onPrinterDiscoveryDone,
    this.onDiscoveryError, this.onChangePrinterStatus,
    {this.onPermissionDenied}) {
  channel = MethodChannel('ZebraPrinterObject' + id);
  channel.setMethodCallHandler(nativeMethodCallHandler);
}