copyWith method

  1. @useResult
  2. @override
FSliderStateStyle copyWith({
  1. TextStyle? labelTextStyle,
  2. TextStyle? descriptionTextStyle,
  3. Color? activeColor,
  4. Color? inactiveColor,
  5. double? mainAxisPadding,
  6. BorderRadius? borderRadius,
  7. FSliderMarkStyle? markStyle,
  8. FSliderThumbStyle? thumbStyle,
  9. FTooltipStyle? tooltipStyle,
})
override

Returns a copy of this FSliderStateStyle but with the given fields replaced with the new values.

Implementation

@useResult
@override
FSliderStateStyle copyWith({
  TextStyle? labelTextStyle,
  TextStyle? descriptionTextStyle,
  Color? activeColor,
  Color? inactiveColor,
  double? mainAxisPadding,
  BorderRadius? borderRadius,
  FSliderMarkStyle? markStyle,
  FSliderThumbStyle? thumbStyle,
  FTooltipStyle? tooltipStyle,
}) =>
    FSliderStateStyle(
      labelTextStyle: labelTextStyle ?? this.labelTextStyle,
      descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
      activeColor: activeColor ?? this.activeColor,
      inactiveColor: inactiveColor ?? this.inactiveColor,
      borderRadius: borderRadius ?? this.borderRadius,
      markStyle: markStyle ?? this.markStyle,
      thumbStyle: thumbStyle ?? this.thumbStyle,
      tooltipStyle: tooltipStyle ?? this.tooltipStyle,
    );