getProductImageFilename static method
- @Deprecated('Use ProductImage.getUrlFilename instead')
- ProductImage image, {
- ImageSize? imageSize,
Returns the image
filename - for a specific imageSize
if needed.
By default uses the own image
's size field.
E.g. "front_fr.4.100.jpg"
cf. https://github.com/openfoodfacts/smooth-app/issues/3065
Implementation
// TODO: deprecated from 2023-11-25; remove when old enough
@Deprecated('Use ProductImage.getUrlFilename instead')
static String getProductImageFilename(
final ProductImage image, {
final ImageSize? imageSize,
}) =>
image.getUrlFilename(imageSize: imageSize);