copyWith method
- @useResult
- FWidgetStateMap<
Color> ? activeColor, - FWidgetStateMap<
Color> ? inactiveColor, - BorderRadius? borderRadius,
- double? crossAxisExtent,
- double? thumbSize,
- FSliderThumbStyle thumbStyle(
- FSliderThumbStyle style
- FSliderMarkStyle markStyle(
- FSliderMarkStyle style
- FTooltipStyle tooltipStyle(
- FTooltipStyle style
- FTooltipMotion tooltipMotion(
- FTooltipMotion motion
- AlignmentGeometry? tooltipTipAnchor,
- AlignmentGeometry? tooltipThumbAnchor,
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FSliderStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSliderStyle.activeColor - The slider's active track colors.
- FSliderStyle.inactiveColor - The slider's inactive track colors.
- FSliderStyle.borderRadius - The slider's border radius.
- FSliderStyle.crossAxisExtent - The slider's cross-axis extent.
- FSliderStyle.thumbSize - The thumb's size.
- FSliderStyle.thumbStyle - The slider thumb's style.
- FSliderStyle.markStyle - The slider marks' style.
- FSliderStyle.tooltipStyle - The tooltip's style.
- FSliderStyle.tooltipMotion - The tooltip's motion-related properties.
- FSliderStyle.tooltipTipAnchor - The anchor of the tooltip to which the
tooltipThumbAnchor
is aligned. - FSliderStyle.tooltipThumbAnchor - The anchor of the thumb to which the
tooltipTipAnchor
is aligned. - FSliderStyle.labelPadding - The label's padding.
- FSliderStyle.descriptionPadding - The description's padding.
- FSliderStyle.errorPadding - The error's padding.
- FSliderStyle.childPadding - The child's padding.
- FSliderStyle.labelTextStyle - The label's text style.
- FSliderStyle.descriptionTextStyle - The description's text style.
- FSliderStyle.errorTextStyle - The error's text style.
Implementation
@useResult
FSliderStyle copyWith({
FWidgetStateMap<Color>? activeColor,
FWidgetStateMap<Color>? inactiveColor,
BorderRadius? borderRadius,
double? crossAxisExtent,
double? thumbSize,
FSliderThumbStyle Function(FSliderThumbStyle style)? thumbStyle,
FSliderMarkStyle Function(FSliderMarkStyle style)? markStyle,
FTooltipStyle Function(FTooltipStyle style)? tooltipStyle,
FTooltipMotion Function(FTooltipMotion motion)? tooltipMotion,
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 != null ? thumbStyle(this.thumbStyle) : this.thumbStyle,
markStyle: markStyle != null ? markStyle(this.markStyle) : this.markStyle,
tooltipStyle: tooltipStyle != null ? tooltipStyle(this.tooltipStyle) : this.tooltipStyle,
tooltipMotion: tooltipMotion != null ? tooltipMotion(this.tooltipMotion) : this.tooltipMotion,
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,
);