copyWith method

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

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

Implementation

@useResult
FSliderMarkStyle copyWith({
  Color? tickColor,
  double? tickSize,
  TextStyle? labelTextStyle,
  Alignment? labelAnchor,
  double? labelOffset,
}) =>
    FSliderMarkStyle(
      tickColor: tickColor ?? this.tickColor,
      tickSize: tickSize ?? this.tickSize,
      labelTextStyle: labelTextStyle ?? this.labelTextStyle,
      labelAnchor: labelAnchor ?? this.labelAnchor,
      labelOffset: labelOffset ?? this.labelOffset,
    );