findAllCachedImageInfoOrNull function
Implementation
Future<List<CachedImageInfo>?> findAllCachedImageInfoOrNull(ObjectBox objectbox, String imageUrl) async {
final query = objectbox.cachedImageInfoBox.query(CachedImageInfo_.imageUrl.equals(imageUrl)).build();
final cachedImagesInfo = query.find(); // find() returns List<CachedImageInfo>
return cachedImagesInfo.isNotEmpty ? cachedImagesInfo : null;
}