copyWith method

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

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

Implementation

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