getTitle method

String getTitle(
  1. AppLocalizations appLocalizations
)

Implementation

String getTitle(AppLocalizations appLocalizations) => switch (this) {
  PreferencesPageProjects.food => appLocalizations.myPreferences_food_title,
  PreferencesPageProjects.products =>
    appLocalizations.myPreferences_product_title,
  PreferencesPageProjects.beauty =>
    appLocalizations.myPreferences_beauty_title,
  PreferencesPageProjects.pets =>
    appLocalizations.myPreferences_pet_food_title,
};