getItem method

  1. @override
Object? getItem(
  1. String key
)
override

Implementation

@override
Object? getItem(String key) {
  Map? localData;
  if (locale != null) {
    localData = localizedValues[locale!.languageCode];
  }
  if (localData == null) return localizedValues['en']![key];
  return localData[key];
}