ContainedTabBarView constructor

const ContainedTabBarView({
  1. Key? key,
  2. required List<Widget> tabs,
  3. TabBarProperties tabBarProperties = const TabBarProperties(),
  4. required List<Widget> views,
  5. TabBarViewProperties tabBarViewProperties = const TabBarViewProperties(),
  6. int initialIndex = 0,
  7. void onChange(
    1. int
    )?,
  8. 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);