copyWith method
*** CNTabBar-specific properties end *** 用户BaseTabScaffold里构建bottomNavigationBar
Implementation
/// 用户BaseTabScaffold里构建bottomNavigationBar
BaseTabBar copyWith({
ValueChanged<int>? onTap,
required int currentIndex,
BaseParam? baseParam,
}) {
return BaseTabBar(
items: items,
onTap: onTap ?? this.onTap,
currentIndex: currentIndex,
iconSize: iconSize,
backgroundColor: backgroundColor,
activeColor: activeColor,
inactiveColor: inactiveColor,
border: border,
elevation: elevation,
type: type,
fixedColor: fixedColor,
selectedItemColor: selectedItemColor,
unselectedItemColor: unselectedItemColor,
selectedIconTheme: selectedIconTheme,
unselectedIconTheme: unselectedIconTheme,
selectedFontSize: selectedFontSize,
unselectedFontSize: unselectedFontSize,
selectedLabelStyle: selectedLabelStyle,
unselectedLabelStyle: unselectedLabelStyle,
showSelectedLabels: showSelectedLabels,
showUnselectedLabels: showUnselectedLabels,
mouseCursor: mouseCursor,
enableFeedback: enableFeedback,
enableLiquidGlass: enableLiquidGlass,
glassOpacity: glassOpacity,
reflectionIntensity: reflectionIntensity,
adaptiveInteraction: adaptiveInteraction,
hapticFeedback: hapticFeedback,
useMaterial3Tabs: useMaterial3Tabs,
useNativeCupertinoTabBar: useNativeCupertinoTabBar,
cnTint: cnTint,
cnHeight: cnHeight,
cnSplit: cnSplit,
cnRightCount: cnRightCount,
cnShrinkCentered: cnShrinkCentered,
cnSplitSpacing: cnSplitSpacing,
cnBackgroundOpacity: cnBackgroundOpacity,
searchConfig: searchConfig,
baseParam: baseParam ?? this.baseParam,
);
}