ContainedTabBarView constructor
const
ContainedTabBarView({
- Key? key,
- required List<
Widget> tabs, - TabBarProperties tabBarProperties = const TabBarProperties(),
- required List<
Widget> views, - TabBarViewProperties tabBarViewProperties = const TabBarViewProperties(),
- int initialIndex = 0,
- void onChange()?,
- bool callOnChangeWhileIndexIsChanging = false,
Implementation
const ContainedTabBarView({
Key? key,
required this.tabs,
this.tabBarProperties = const TabBarProperties(),
required this.views,
this.tabBarViewProperties = const TabBarViewProperties(),
this.initialIndex = 0,
this.onChange,
this.callOnChangeWhileIndexIsChanging = false,
}) : assert(
tabs.length == views.length,
'There has to be an equal amount of tabs (${tabs.length}) and views (${views.length}).',
),
super(key: key);