FancyBottomNavigation constructor

FancyBottomNavigation({
  1. required List<TabData> tabs,
  2. required dynamic onTabChangedListener(
    1. int position
    ),
  3. Key? key,
  4. int initialSelection = 0,
  5. Color? circleColor,
  6. Color? activeIconColor,
  7. Color? inactiveIconColor,
  8. Color? textColor,
  9. Color? barBackgroundColor,
})

Implementation

FancyBottomNavigation(
    {required this.tabs,
    required this.onTabChangedListener,
    this.key,
    this.initialSelection = 0,
    this.circleColor,
    this.activeIconColor,
    this.inactiveIconColor,
    this.textColor,
    this.barBackgroundColor})
    : assert(onTabChangedListener != null),
      assert(tabs != null),
      assert(tabs.length > 1 && tabs.length < 5);