copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FSliderThumbStyle copyWith({
  FVariantsValueDelta<FSliderVariantConstraint, FSliderVariant, Color, Delta>? color,
  FVariantsValueDelta<FSliderVariantConstraint, FSliderVariant, Color, Delta>? borderColor,
  double? borderWidth,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
}) => .new(
  color: color?.call(this.color) ?? this.color,
  borderColor: borderColor?.call(this.borderColor) ?? this.borderColor,
  borderWidth: borderWidth ?? this.borderWidth,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
);