i18nObjInLocaleLookup function Null safety

String i18nObjInLocaleLookup(
  1. LocaleType localeType,
  2. String key,
  3. int index
)

Get international lookup for a localeType, key and index.

Implementation

String i18nObjInLocaleLookup(LocaleType localeType, String key, int index) {
  final i18n = i18nObjInLocale(localeType);
  final i18nKey = i18n[key] as List<String>;
  return i18nKey[index];
}