ZebraPrinter constructor

ZebraPrinter(
  1. String id, {
  2. dynamic onDiscoveryError(
    1. String,
    2. String?
    )?,
  3. Function? onPermissionDenied,
  4. ZebraPrinterNotifier? notifier,
})

Implementation

ZebraPrinter(String id,
    {this.onDiscoveryError,
    this.onPermissionDenied,
    ZebraPrinterNotifier? notifier}) {
  channel = MethodChannel('ZebraPrinterObject' + id);
  channel.setMethodCallHandler(nativeMethodCallHandler);
  this.notifier = notifier ?? ZebraPrinterNotifier();
}