pollScanResults method

void pollScanResults()

Implementation

void pollScanResults() {
  scanResults((isCompleted) {
    if (isCompleted) {
      model!.state = ScanState.scanStateScaned;
      downloadScannerFile();
    } else {
      Future.delayed(const Duration(seconds: 3), () {
        pollScanResults();
      });
    }
  });
}