copyWith method

BaseTabBarConfig copyWith({
  1. double? tabHeight,
  2. double? indicatorHeight,
  3. double? indicatorWidth,
  4. BaseTextStyle? labelStyle,
  5. BaseTextStyle? unselectedLabelStyle,
  6. Color? backgroundColor,
  7. BaseTextStyle? tagNormalTextStyle,
  8. Color? tagNormalColor,
  9. BaseTextStyle? tagSelectedTextStyle,
  10. Color? tagSelectedColor,
  11. double? tagRadius,
  12. double? tagSpacing,
  13. int? preLineTagSize,
  14. 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,
  );
}