copyWith method

  1. @useResult
FSliderMarkStyle copyWith({
  1. FWidgetStateMap<Color>? tickColor,
  2. double? tickSize,
  3. FWidgetStateMap<TextStyle>? labelTextStyle,
  4. AlignmentGeometry? labelAnchor,
  5. double? labelOffset,
})
inherited

Returns a copy of this FSliderMarkStyle 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
FSliderMarkStyle copyWith({
  FWidgetStateMap<Color>? tickColor,
  double? tickSize,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  AlignmentGeometry? labelAnchor,
  double? labelOffset,
}) => FSliderMarkStyle(
  tickColor: tickColor ?? this.tickColor,
  tickSize: tickSize ?? this.tickSize,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  labelAnchor: labelAnchor ?? this.labelAnchor,
  labelOffset: labelOffset ?? this.labelOffset,
);