copyWith method

  1. @useResult
FSliderStyle copyWith({
  1. FLabelLayoutStyle? labelLayoutStyle,
  2. FSliderStateStyle? enabledStyle,
  3. FSliderStateStyle? disabledStyle,
  4. FSliderErrorStyle? errorStyle,
  5. double? thumbSize,
  6. double? crossAxisExtent,
  7. Alignment? tooltipTipAnchor,
  8. Alignment? tooltipThumbAnchor,
})

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

Implementation

@useResult
FSliderStyle copyWith({
  FLabelLayoutStyle? labelLayoutStyle,
  FSliderStateStyle? enabledStyle,
  FSliderStateStyle? disabledStyle,
  FSliderErrorStyle? errorStyle,
  double? thumbSize,
  double? crossAxisExtent,
  Alignment? tooltipTipAnchor,
  Alignment? tooltipThumbAnchor,
}) =>
    FSliderStyle(
      labelLayoutStyle: labelLayoutStyle ?? this.labelLayoutStyle,
      enabledStyle: enabledStyle ?? this.enabledStyle,
      disabledStyle: disabledStyle ?? this.disabledStyle,
      errorStyle: errorStyle ?? this.errorStyle,
      thumbSize: thumbSize ?? this.thumbSize,
      crossAxisExtent: crossAxisExtent ?? this.crossAxisExtent,
      tooltipTipAnchor: tooltipTipAnchor ?? this.tooltipTipAnchor,
      tooltipThumbAnchor: tooltipThumbAnchor ?? this.tooltipThumbAnchor,
    );