copyWith method
- @useResult
- 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,
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,
);