getProductImageFilename static method
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"
Implementation
static String getProductImageFilename(
final ProductImage image, {
final ImageSize? imageSize,
}) =>
'${image.field.offTag}_${image.language.code}'
'.${image.rev}'
'.${((imageSize ?? image.size) ?? ImageSize.UNKNOWN).number}'
'.jpg';