getOrderedMainImageFields static method
Implementation
static List<ImageField> getOrderedMainImageFields(
ProductType? productType,
) => switch (productType) {
ProductType.product => const <ImageField>[
ImageField.FRONT,
ImageField.PACKAGING,
],
ProductType.beauty => const <ImageField>[
ImageField.FRONT,
ImageField.INGREDIENTS,
ImageField.PACKAGING,
],
null || ProductType.food || ProductType.petFood => const <ImageField>[
ImageField.FRONT,
ImageField.INGREDIENTS,
ImageField.NUTRITION,
ImageField.PACKAGING,
],
};