copyWith method

  1. @override
VTabBarStyle copyWith({
  1. Color? labelColor,
  2. Color? unselectedLabelColor,
  3. Color? overlayColor,
  4. Color? overlayColorPressed,
  5. Color? indicatorColor,
  6. Color? unselectedBackgroundColor,
  7. Color? selectedBackgroundColor,
  8. double? indicatorWeight,
  9. double? bottomOpacity,
  10. TextStyle? labelStyle,
  11. 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,
    );