controller property Null safety

CupertinoTabController? controller

Controls the currently selected tab index of the tabBar, as well as the active tab index of the tabBuilder. Providing a different controller will also update the scaffold's current active index to the new controller's index value.

Defaults to null.


final CupertinoTabController? controller;