BaseTabBar.search constructor

const BaseTabBar.search({
  1. Key? key,
  2. List<BottomNavigationBarItem>? items,
  3. ValueChanged<int>? onTap,
  4. int currentIndex = 0,
  5. required CNSearchConfig searchConfig,
  6. double? iconSize,
  7. Color? backgroundColor,
  8. Color? activeColor,
  9. Color? cnTint,
  10. double? cnHeight,
  11. bool cnSplit = false,
  12. int cnRightCount = 1,
  13. bool cnShrinkCentered = true,
  14. double cnSplitSpacing = 8.0,
  15. double? cnBackgroundOpacity,
  16. bool useNativeCupertinoTabBar = true,
  17. BaseParam? baseParam,
})

Factory constructor for search-enabled tab bar

Implementation

const BaseTabBar.search({
  Key? key,
  List<BottomNavigationBarItem>? items,
  ValueChanged<int>? onTap,
  int currentIndex = 0,
  required CNSearchConfig searchConfig,
  double? iconSize,
  Color? backgroundColor,
  Color? activeColor,
  Color? cnTint,
  double? cnHeight,
  bool cnSplit = false,
  int cnRightCount = 1,
  bool cnShrinkCentered = true,
  double cnSplitSpacing = 8.0,
  double? cnBackgroundOpacity,
  bool useNativeCupertinoTabBar = true,
  BaseParam? baseParam,
}) : this(
       key: key,
       items: items,
       onTap: onTap,
       currentIndex: currentIndex,
       searchConfig: searchConfig,
       iconSize: iconSize,
       backgroundColor: backgroundColor,
       activeColor: activeColor,
       cnTint: cnTint,
       cnHeight: cnHeight,
       cnSplit: cnSplit,
       cnRightCount: cnRightCount,
       cnShrinkCentered: cnShrinkCentered,
       cnSplitSpacing: cnSplitSpacing,
       cnBackgroundOpacity: cnBackgroundOpacity,
       useNativeCupertinoTabBar: useNativeCupertinoTabBar,
       baseParam: baseParam,
     );