Add force unwrap for localization builder from BuildContext

This commit is contained in:
M 2022-10-14 11:52:50 -04:00
parent 016a153e8d
commit 067d720cf3

View file

@ -26,7 +26,7 @@ class S implements WidgetsLocalizations {
static const GeneratedLocalizationsDelegate delegate =
GeneratedLocalizationsDelegate();
static S of(BuildContext context) => Localizations.of<S>(context, S);
static S of(BuildContext context) => Localizations.of<S>(context, S)!;
""";
const part2 = """