Commit eae9e053 authored by Mehmet Fidanboylu's avatar Mehmet Fidanboylu Committed by GitHub

Fix localizations so that extract_messages is happy. (#11894)

extract_messages script currently fails to parse this file because of its use of static asserts, super and a ctr body. Since we already have an assert in the body, I think it is also more readable to put all of them together. _LocalizationScope follows the same pattern above.
parent eba6ceb8
......@@ -289,9 +289,9 @@ class Localizations extends StatefulWidget {
@required this.locale,
@required this.delegates,
this.child,
}) : assert(locale != null),
assert(delegates != null),
super(key: key) {
}) : super(key: key) {
assert(locale != null);
assert(delegates != null);
assert(delegates.any((LocalizationsDelegate<dynamic> delegate) => delegate is LocalizationsDelegate<WidgetsLocalizations>));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment