setTranslations method

void setTranslations(
  1. Map<dynamic, String> source
)

Implementation

void setTranslations(Map<dynamic, String> source) {
  source.forEach((key, text) {
    if(!translations.containsKey(key)) {
      translations[key] = text;
    }
  });
}