preserveExistingDocumentsForDownload function
- InspectionLocation current,
- InspectionLocation refreshed
Implementation
@visibleForTesting
void preserveExistingDocumentsForDownload(
InspectionLocation current,
InspectionLocation refreshed,
) {
if ((refreshed.dokuspaths == null || refreshed.dokuspaths!.isEmpty) &&
current.dokuspaths != null &&
current.dokuspaths!.isNotEmpty) {
refreshed.dokuspaths = current.dokuspaths;
}
}