getPrinterInstance static method
Future<ZebraPrinter>
getPrinterInstance({
- dynamic onDiscoveryError()?,
- Function? onPermissionDenied,
- 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;
}