diff --git a/tool/localization/localization_constants.dart b/tool/localization/localization_constants.dart index 2d2be7095..0ccbd380b 100644 --- a/tool/localization/localization_constants.dart +++ b/tool/localization/localization_constants.dart @@ -26,7 +26,7 @@ class S implements WidgetsLocalizations { static const GeneratedLocalizationsDelegate delegate = GeneratedLocalizationsDelegate(); - static S of(BuildContext context) => Localizations.of(context, S); + static S of(BuildContext context) => Localizations.of(context, S)!; """; const part2 = """