getProductMainImagesData function
- Product product,
- OpenFoodFactsLanguage language
Implementation
List<ProductImageData> getProductMainImagesData(
Product product,
OpenFoodFactsLanguage language,
) {
final List<ProductImageData> result = <ProductImageData>[];
for (final ImageField imageField
in ImageFieldSmoothieExtension.getOrderedMainImageFields(
product.productType,
)) {
result.add(getProductImageData(product, imageField, language));
}
return result;
}