copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FSliderMarkStyle copyWith({
  FVariantsValueDelta<FSliderVariantConstraint, FSliderVariant, Color, Delta>? tickColor,
  double? tickSize,
  FVariantsDelta<FSliderVariantConstraint, FSliderVariant, TextStyle, TextStyleDelta>? labelTextStyle,
  AlignmentGeometry? labelAnchor,
  double? labelOffset,
}) => .new(
  tickColor: tickColor?.call(this.tickColor) ?? this.tickColor,
  tickSize: tickSize ?? this.tickSize,
  labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
  labelAnchor: labelAnchor ?? this.labelAnchor,
  labelOffset: labelOffset ?? this.labelOffset,
);