EasyLocalization constructor

EasyLocalization({
  1. Key? key,
  2. required Widget child,
  3. required List<Locale> supportedLocales,
  4. required String path,
  5. Locale? fallbackLocale,
  6. Locale? startLocale,
  7. bool useOnlyLangCode = false,
  8. bool useFallbackTranslations = false,
  9. AssetLoader assetLoader = const RootBundleAssetLoader(),
  10. List<AssetLoader>? extraAssetLoaders,
  11. bool saveLocale = true,
  12. Widget errorWidget(
    1. FlutterError? message
    )?,
})

Implementation

EasyLocalization({
  Key? key,
  required this.child,
  required this.supportedLocales,
  required this.path,
  this.fallbackLocale,
  this.startLocale,
  this.useOnlyLangCode = false,
  this.useFallbackTranslations = false,
  this.assetLoader = const RootBundleAssetLoader(),
  this.extraAssetLoaders,
  this.saveLocale = true,
  this.errorWidget,
})  : assert(supportedLocales.isNotEmpty),
      assert(path.isNotEmpty),
      super(key: key) {
  EasyLocalization.logger.debug('Start');
}