EasyLocalization constructor
EasyLocalization({
- Key? key,
- required Widget child,
- required List<
Locale> supportedLocales, - required String path,
- Locale? fallbackLocale,
- Locale? startLocale,
- bool useOnlyLangCode = false,
- bool useFallbackTranslations = false,
- AssetLoader assetLoader = const RootBundleAssetLoader(),
- List<
AssetLoader> ? extraAssetLoaders, - bool saveLocale = true,
- Widget errorWidget(
- 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');
}