getImageUrl method

String? getImageUrl(
  1. Product product
)

Implementation

String? getImageUrl(Product product) => switch (this) {
  ImageField.FRONT => product.imageFrontUrl,
  ImageField.INGREDIENTS => product.imageIngredientsUrl,
  ImageField.NUTRITION => product.imageNutritionUrl,
  ImageField.PACKAGING => product.imagePackagingUrl,
  ImageField.OTHER => null,
};