@@ -798,7 +798,7 @@ class _TabBarState extends State<TabBar> {
798798 bool get _controllerIsValid => _controller? .animation != null ;
799799
800800 void _updateTabController () {
801- final TabController ? newController =
801+ final TabController newController =
802802 widget.controller ?? DefaultTabController .of (context);
803803 assert (() {
804804 if (newController == null ) {
@@ -1208,7 +1208,7 @@ class _TabBarViewState extends State<TabBarView> {
12081208 bool get _controllerIsValid => _controller? .animation != null ;
12091209
12101210 void _updateTabController () {
1211- final TabController ? newController =
1211+ final TabController newController =
12121212 widget.controller ?? DefaultTabController .of (context);
12131213 assert (() {
12141214 if (newController == null ) {
@@ -1492,7 +1492,7 @@ class TabPageSelector extends StatelessWidget {
14921492 ColorTween (begin: fixColor, end: fixSelectedColor);
14931493 final ColorTween previousColorTween =
14941494 ColorTween (begin: fixSelectedColor, end: fixColor);
1495- final TabController ? tabController =
1495+ final TabController tabController =
14961496 controller ?? DefaultTabController .of (context);
14971497 assert (() {
14981498 if (tabController == null ) {
0 commit comments