NamespaceFileTranslationLoader constructor

NamespaceFileTranslationLoader({
  1. required List<String>? namespaces,
  2. String fallbackDir = "en",
  3. String basePath = "assets/flutter_i18n",
  4. String separator = "_",
  5. bool useCountryCode = false,
  6. bool useScriptCode = false,
  7. Locale? forcedLocale,
  8. List<BaseDecodeStrategy>? decodeStrategies,
})

Implementation

NamespaceFileTranslationLoader(
    {required List<String>? this.namespaces,
    String this.fallbackDir = "en",
    String basePath = "assets/flutter_i18n",
    String separator = "_",
    bool useCountryCode = false,
    bool useScriptCode = false,
    Locale? forcedLocale,
    List<BaseDecodeStrategy>? decodeStrategies})
    : super(
          basePath: basePath,
          separator: separator,
          useCountryCode: useCountryCode,
          useScriptCode: useScriptCode,
          forcedLocale: forcedLocale,
          decodeStrategies: decodeStrategies) {
  assert(namespaces != null);
  assert(namespaces!.length > 0);
}