getScannedDocumentAsFile method Null safety

File getScannedDocumentAsFile()

Get croppedImage (scanned document) as File.

Implementation

File getScannedDocumentAsFile() => File.fromUri(
      Uri.parse(croppedImage!),
    );