appendTranslations method

void appendTranslations(
  1. Map<String, Map<String, String>> tr
)

Implementation

void appendTranslations(Map<String, Map<String, String>> tr) {
  tr.forEach((key, map) {
    if (translations.containsKey(key)) {
      translations[key]!.addAll(map);
    } else {
      translations[key] = map;
    }
  });
}