getPrinterInstance static method

Future<ZebraPrinter> getPrinterInstance({
  1. dynamic onDiscoveryError(
    1. String,
    2. String?
    )?,
  2. Function? onPermissionDenied,
  3. ZebraController? controller,
})

Implementation

static Future<ZebraPrinter> getPrinterInstance(
    {Function(String, String?)? onDiscoveryError,
    Function? onPermissionDenied,
    ZebraController? controller}) async {
  String id = await _channel.invokeMethod("getInstance");
  ZebraPrinter printer = ZebraPrinter(
    id,
    controller: controller,
    onDiscoveryError: onDiscoveryError,
    onPermissionDenied: onPermissionDenied);
  return printer;
}