copyWith method

  1. @useResult
FSliderStyles copyWith({
  1. FSliderStyle horizontalStyle(
    1. FSliderStyle
    )?,
  2. FSliderStyle verticalStyle(
    1. FSliderStyle
    )?,
})

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

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

horizontalStyle

The enabled slider's horizontal style.

verticalStyle

The enabled slider's vertical style.

Implementation

@useResult
FSliderStyles copyWith({
  FSliderStyle Function(FSliderStyle)? horizontalStyle,
  FSliderStyle Function(FSliderStyle)? verticalStyle,
}) => FSliderStyles(
  horizontalStyle: horizontalStyle != null ? horizontalStyle(this.horizontalStyle) : this.horizontalStyle,
  verticalStyle: verticalStyle != null ? verticalStyle(this.verticalStyle) : this.verticalStyle,
);