Add force unwrap for localization builder from BuildContext

M committed Oct 14, 2022 at 11:52 UTC 067d720cf30a6be13664a3bc577c0d7949c65c63
1 file changed +1 -1
tool/localization/localization_constants.dart
+1 -1
@@ -26,7 +26,7 @@ class S implements WidgetsLocalizations {
26 static const GeneratedLocalizationsDelegate delegate =
27 GeneratedLocalizationsDelegate();
28
29 - static S of(BuildContext context) => Localizations.of<S>(context, S);
29 + static S of(BuildContext context) => Localizations.of<S>(context, S)!;
30 """;
31
32 const part2 = """