copyWith method
BaseTabBarConfig
copyWith({
- double? tabHeight,
- double? indicatorHeight,
- double? indicatorWidth,
- BaseTextStyle? labelStyle,
- BaseTextStyle? unselectedLabelStyle,
- Color? backgroundColor,
- BaseTextStyle? tagNormalTextStyle,
- Color? tagNormalColor,
- BaseTextStyle? tagSelectedTextStyle,
- Color? tagSelectedColor,
- double? tagRadius,
- double? tagSpacing,
- int? preLineTagSize,
- double? tagHeight,
Implementation
BaseTabBarConfig copyWith({
double? tabHeight,
double? indicatorHeight,
double? indicatorWidth,
BaseTextStyle? labelStyle,
BaseTextStyle? unselectedLabelStyle,
Color? backgroundColor,
BaseTextStyle? tagNormalTextStyle,
Color? tagNormalColor,
BaseTextStyle? tagSelectedTextStyle,
Color? tagSelectedColor,
double? tagRadius,
double? tagSpacing,
int? preLineTagSize,
double? tagHeight,
}) {
return BaseTabBarConfig(
tabHeight: tabHeight ?? _tabHeight,
indicatorHeight: indicatorHeight ?? _indicatorHeight,
indicatorWidth: indicatorWidth ?? _indicatorWidth,
labelStyle: labelStyle ?? _labelStyle,
unselectedLabelStyle: unselectedLabelStyle ?? _unselectedLabelStyle,
backgroundColor: backgroundColor ?? _backgroundColor,
tagNormalTextStyle: tagNormalTextStyle ?? _tagNormalTextStyle,
tagNormalBgColor: tagNormalColor ?? _tagNormalBgColor,
tagSelectedTextStyle: tagSelectedTextStyle ?? _tagSelectedTextStyle,
tagSelectedBgColor: tagSelectedColor ?? _tagSelectedBgColor,
tagRadius: tagRadius ?? _tagRadius,
tagSpacing: tagSpacing ?? _tagSpacing,
preLineTagCount: preLineTagSize ?? _preLineTagCount,
tagHeight: tagHeight ?? _tagHeight,
);
}