copyWith method

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

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

Consider using the CLI to generate a style.

Parameters

Implementation

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