getLocalizedValue method

String getLocalizedValue(
  1. dynamic localizedName
)

Operator to get message to use

Implementation

String getLocalizedValue(dynamic localizedName) {
  if (customValues != null &&
      customValues.containsKey(currentLocale.languageCode) &&
      customValues[currentLocale.languageCode].containsKey(localizedName)) {
    return customValues[currentLocale.languageCode][localizedName];
  }
  return localizedValues[currentLocale.languageCode][localizedName];
}