discoveryPrinters method

void discoveryPrinters()

Implementation

void discoveryPrinters() {
  notifier.isDone = false;
  channel.invokeMethod("checkPermission").then((isGrantPermission) {
    if (isGrantPermission) {
      channel.invokeMethod("discoverPrinters");
    } else {
      notifier.isDone = true;
      if (onPermissionDenied != null) onPermissionDenied!();
    }
  });
}