SmoothTabBar<T> constructor

const SmoothTabBar<T>({
  1. required TabController tabController,
  2. required Iterable<SmoothTabBarItem<T>> items,
  3. required dynamic onTabChanged(
    1. T
    ),
  4. EdgeInsetsGeometry? padding,
  5. Iterable<Widget?>? leadingItems,
  6. Iterable<Widget?>? trailingItems,
  7. Color? overflowMainColor,
  8. Color? unselectedTabColor,
  9. Key? key,
})

Implementation

const SmoothTabBar({
  required this.tabController,
  required this.items,
  required this.onTabChanged,
  this.padding,
  this.leadingItems,
  this.trailingItems,
  this.overflowMainColor,
  this.unselectedTabColor,
  super.key,
}) : assert(items.length > 0);