ZebraPrinter constructor

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

Implementation

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