getPrinterInstance static method

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

Implementation

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