copyWith method

  1. @useResult
FSliderStyle copyWith({
  1. FWidgetStateMap<Color>? activeColor,
  2. FWidgetStateMap<Color>? inactiveColor,
  3. BorderRadius? borderRadius,
  4. double? crossAxisExtent,
  5. double? thumbSize,
  6. FSliderThumbStyle? thumbStyle,
  7. FSliderMarkStyle? markStyle,
  8. FTooltipStyle? tooltipStyle,
  9. AlignmentGeometry? tooltipTipAnchor,
  10. AlignmentGeometry? tooltipThumbAnchor,
  11. EdgeInsetsGeometry? labelPadding,
  12. EdgeInsetsGeometry? descriptionPadding,
  13. EdgeInsetsGeometry? errorPadding,
  14. EdgeInsetsGeometry? childPadding,
  15. FWidgetStateMap<TextStyle>? labelTextStyle,
  16. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  17. TextStyle? errorTextStyle,
})
inherited

Returns a copy of this FSliderStyle with the given properties replaced.

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FSliderStyle copyWith({
  FWidgetStateMap<Color>? activeColor,
  FWidgetStateMap<Color>? inactiveColor,
  BorderRadius? borderRadius,
  double? crossAxisExtent,
  double? thumbSize,
  FSliderThumbStyle? thumbStyle,
  FSliderMarkStyle? markStyle,
  FTooltipStyle? tooltipStyle,
  AlignmentGeometry? tooltipTipAnchor,
  AlignmentGeometry? tooltipThumbAnchor,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FSliderStyle(
  activeColor: activeColor ?? this.activeColor,
  inactiveColor: inactiveColor ?? this.inactiveColor,
  borderRadius: borderRadius ?? this.borderRadius,
  crossAxisExtent: crossAxisExtent ?? this.crossAxisExtent,
  thumbSize: thumbSize ?? this.thumbSize,
  thumbStyle: thumbStyle ?? this.thumbStyle,
  markStyle: markStyle ?? this.markStyle,
  tooltipStyle: tooltipStyle ?? this.tooltipStyle,
  tooltipTipAnchor: tooltipTipAnchor ?? this.tooltipTipAnchor,
  tooltipThumbAnchor: tooltipThumbAnchor ?? this.tooltipThumbAnchor,
  labelPadding: labelPadding ?? this.labelPadding,
  descriptionPadding: descriptionPadding ?? this.descriptionPadding,
  errorPadding: errorPadding ?? this.errorPadding,
  childPadding: childPadding ?? this.childPadding,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);