InternationalizationDelegate constructor

InternationalizationDelegate({
  1. required List<Locale> suportedLocales,
  2. String translationsPath = "assets/translations/",
  3. Future<Map<String, dynamic>> addTranslations(
    1. Locale locale
    )?,
})

Implementation

InternationalizationDelegate({
  required List<Locale> suportedLocales,
  String translationsPath = "assets/translations/",
  this.addTranslations,
})  : assert(
        suportedLocales.isNotEmpty,
        "suportedLocales can't be null or empty",
      ),
      _translationsPath = translationsPath.endsWith('/')
          ? translationsPath
          : '$translationsPath/',
      _suportedLocales = suportedLocales;