load method

Future<void> load()

Implementation

Future<void> load() async {
  String jsonStringValues = await rootBundle
      .loadString('assets/language/${locale.languageCode}.json');
  Map<String, dynamic> mappedJson = json.decode(jsonStringValues);
  _localizedValues = mappedJson.map((key, value) => MapEntry(key, value));
}