getAddPhotoButtonText method

String getAddPhotoButtonText(
  1. AppLocalizations appLocalizations
)

Implementation

String getAddPhotoButtonText(AppLocalizations appLocalizations) =>
    switch (this) {
      ImageField.FRONT => appLocalizations.front_packaging_photo_button_label,
      ImageField.INGREDIENTS =>
        appLocalizations.ingredients_photo_button_label,
      ImageField.NUTRITION =>
        appLocalizations.nutritional_facts_photo_button_label,
      ImageField.PACKAGING => appLocalizations.recycling_photo_button_label,
      ImageField.OTHER => appLocalizations.take_more_photo_button_label,
    };