@@ -14,13 +14,12 @@ class S implements WidgetsLocalizations {
14
14
static S current;
15
15
16
16
static const GeneratedLocalizationsDelegate delegate =
17
- GeneratedLocalizationsDelegate ();
17
+ GeneratedLocalizationsDelegate ();
18
18
19
19
static S of (BuildContext context) => Localizations .of <S >(context, S );
20
20
21
21
@override
22
22
TextDirection get textDirection => TextDirection .ltr;
23
-
24
23
}
25
24
26
25
class $en extends S {
@@ -36,7 +35,8 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
36
35
];
37
36
}
38
37
39
- LocaleListResolutionCallback listResolution ({Locale fallback, bool withCountry = true }) {
38
+ LocaleListResolutionCallback listResolution (
39
+ {Locale fallback, bool withCountry = true }) {
40
40
return (List <Locale > locales, Iterable <Locale > supported) {
41
41
if (locales == null || locales.isEmpty) {
42
42
return fallback ?? supported.first;
@@ -46,7 +46,8 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
46
46
};
47
47
}
48
48
49
- LocaleResolutionCallback resolution ({Locale fallback, bool withCountry = true }) {
49
+ LocaleResolutionCallback resolution (
50
+ {Locale fallback, bool withCountry = true }) {
50
51
return (Locale locale, Iterable <Locale > supported) {
51
52
return _resolve (locale, fallback, supported, withCountry);
52
53
};
@@ -61,7 +62,7 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
61
62
S .current = const $en ();
62
63
return SynchronousFuture <S >(S .current);
63
64
default :
64
- // NO-OP.
65
+ // NO-OP.
65
66
}
66
67
}
67
68
S .current = const S ();
@@ -77,7 +78,8 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
77
78
///
78
79
/// Internal method to resolve a locale from a list of locales.
79
80
///
80
- Locale _resolve (Locale locale, Locale fallback, Iterable <Locale > supported, bool withCountry) {
81
+ Locale _resolve (Locale locale, Locale fallback, Iterable <Locale > supported,
82
+ bool withCountry) {
81
83
if (locale == null || ! _isSupported (locale, withCountry)) {
82
84
return fallback ?? supported.first;
83
85
}
@@ -110,7 +112,9 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
110
112
}
111
113
112
114
// If no country requirement is requested, check if this locale has no country.
113
- if (true != withCountry && (supportedLocale.countryCode == null || supportedLocale.countryCode.isEmpty)) {
115
+ if (true != withCountry &&
116
+ (supportedLocale.countryCode == null ||
117
+ supportedLocale.countryCode.isEmpty)) {
114
118
return true ;
115
119
}
116
120
}
@@ -119,8 +123,9 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
119
123
}
120
124
}
121
125
122
- String getLang (Locale l) => l == null
123
- ? null
124
- : l.countryCode != null && l.countryCode.isEmpty
125
- ? l.languageCode
126
- : l.toString ();
126
+ String getLang (Locale l) =>
127
+ l == null
128
+ ? null
129
+ : l.countryCode != null && l.countryCode.isEmpty
130
+ ? l.languageCode
131
+ : l.toString ();
0 commit comments