Add maybeOf for all the cases where of returns nullable. (#114120)

This commit is contained in:
Greg Spencer
2022-10-31 16:09:09 -07:00
committed by GitHub
parent b20b7d995b
commit 37b72342b0
73 changed files with 836 additions and 308 deletions

View File

@@ -38,7 +38,7 @@ class MyStatelessWidget extends StatelessWidget {
// The Builder widget is used to have a different BuildContext to access
// closest DefaultTabController.
child: Builder(builder: (BuildContext context) {
final TabController tabController = DefaultTabController.of(context)!;
final TabController tabController = DefaultTabController.of(context);
tabController.addListener(() {
if (!tabController.indexIsChanging) {
// Your code goes here.