copyWith method
VTabBarStyle
copyWith({
- VTabIndicatorMode? indicatorMode,
- double? indicatorWidth,
- double? indicatorHeight,
- Color? indicatorColor,
- double? indicatorBottom,
- double? tabHeight,
- Color? bgColor,
- Color? labelColor,
- double? labelSize,
- FontWeight? labelWeight,
- Color? unselectedLabelColor,
- double? unselectedLabelSize,
- FontWeight? unselectedLabelWeight,
Implementation
VTabBarStyle copyWith({
VTabIndicatorMode? indicatorMode,
double? indicatorWidth,
double? indicatorHeight,
Color? indicatorColor,
double? indicatorBottom,
double? tabHeight,
Color? bgColor,
Color? labelColor,
double? labelSize,
FontWeight? labelWeight,
Color? unselectedLabelColor,
double? unselectedLabelSize,
FontWeight? unselectedLabelWeight,
}) {
return VTabBarStyle(
indicatorMode: indicatorMode ?? this.indicatorMode,
indicatorWidth: indicatorWidth ?? this.indicatorWidth,
indicatorHeight: indicatorHeight ?? this.indicatorHeight,
indicatorColor: indicatorColor ?? this.indicatorColor,
indicatorBottom: indicatorBottom ?? this.indicatorBottom,
tabHeight: tabHeight ?? this.tabHeight,
bgColor: bgColor ?? this.bgColor,
labelColor: labelColor ?? this.labelColor,
labelSize: labelSize ?? this.labelSize,
labelWeight: labelWeight ?? this.labelWeight,
unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor,
unselectedLabelSize: unselectedLabelSize ?? this.unselectedLabelSize,
unselectedLabelWeight: unselectedLabelWeight ?? this.unselectedLabelWeight,
);
}