copyWith method
VTabBarStyle
copyWith({
- Color? labelColor,
- Color? unselectedLabelColor,
- Color? overlayColor,
- Color? overlayColorPressed,
- Color? indicatorColor,
- Color? unselectedBackgroundColor,
- Color? selectedBackgroundColor,
- double? indicatorWeight,
- double? bottomOpacity,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VTabBarStyle copyWith({
Color? labelColor,
Color? unselectedLabelColor,
Color? overlayColor,
Color? overlayColorPressed,
Color? indicatorColor,
Color? unselectedBackgroundColor,
Color? selectedBackgroundColor,
double? indicatorWeight,
double? bottomOpacity,
TextStyle? labelStyle,
TextStyle? unselectedLabelStyle,
}) =>
VTabBarStyle(
labelColor: labelColor ?? this.labelColor,
unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor,
overlayColor: overlayColor ?? this.overlayColor,
overlayColorPressed: overlayColorPressed ?? this.overlayColorPressed,
unselectedBackgroundColor:
unselectedBackgroundColor ?? this.unselectedBackgroundColor,
selectedBackgroundColor:
selectedBackgroundColor ?? this.selectedBackgroundColor,
indicatorWeight: indicatorWeight ?? this.indicatorWeight,
indicatorColor: indicatorColor ?? this.indicatorColor,
labelStyle: labelStyle ?? this.labelStyle,
unselectedLabelStyle: unselectedLabelStyle ?? this.unselectedLabelStyle,
);