@@ -65,8 +65,7 @@ class EasyLocalization extends StatefulWidget {
65
65
/// Class loader for localization files.
66
66
/// You can use custom loaders from [Easy Localization Loader] (https://github.com/aissat/easy_localization_loader) or create your own class.
67
67
/// @Default value `const RootBundleAssetLoader()`
68
- // ignore: prefer_typing_uninitialized_variables
69
- final assetLoader;
68
+ final AssetLoader assetLoader;
70
69
71
70
/// Save locale in device storage.
72
71
/// @Default value true
@@ -195,9 +194,12 @@ class _EasyLocalizationProvider extends InheritedWidget {
195
194
196
195
// _EasyLocalizationDelegate get delegate => parent.delegate;
197
196
198
- _EasyLocalizationProvider (this .parent, this ._localeState,
199
- {Key ? key, required this .delegate})
200
- : currentLocale = _localeState.locale,
197
+ _EasyLocalizationProvider (
198
+ this .parent,
199
+ this ._localeState, {
200
+ Key ? key,
201
+ required this .delegate,
202
+ }) : currentLocale = _localeState.locale,
201
203
super (key: key, child: parent.child) {
202
204
EasyLocalization .logger.debug ('Init provider' );
203
205
}
@@ -245,8 +247,10 @@ class _EasyLocalizationDelegate extends LocalizationsDelegate<Localization> {
245
247
/// * use only the lang code to generate i18n file path like en.json or ar.json
246
248
// final bool useOnlyLangCode;
247
249
248
- _EasyLocalizationDelegate (
249
- {this .localizationController, this .supportedLocales}) {
250
+ _EasyLocalizationDelegate ({
251
+ this .localizationController,
252
+ this .supportedLocales,
253
+ }) {
250
254
EasyLocalization .logger.debug ('Init Localization Delegate' );
251
255
}
252
256
@@ -260,9 +264,12 @@ class _EasyLocalizationDelegate extends LocalizationsDelegate<Localization> {
260
264
await localizationController! .loadTranslations ();
261
265
}
262
266
263
- Localization .load (value,
264
- translations: localizationController! .translations,
265
- fallbackTranslations: localizationController! .fallbackTranslations);
267
+ Localization .load (
268
+ value,
269
+ translations: localizationController! .translations,
270
+ fallbackTranslations: localizationController! .fallbackTranslations,
271
+ );
272
+
266
273
return Future .value (Localization .instance);
267
274
}
268
275
0 commit comments