copyWith method
- @useResult
- FVariantsValueDelta<
FSliderVariantConstraint, FSliderVariant, Color, Delta> ? color, - FVariantsValueDelta<
FSliderVariantConstraint, FSliderVariant, Color, Delta> ? borderColor, - double? borderWidth,
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
Returns a copy of this FSliderThumbStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSliderThumbStyle.color - The thumb's color.
- FSliderThumbStyle.borderColor - The border's color.
- FSliderThumbStyle.borderWidth - The border's width.
- FSliderThumbStyle.focusedOutlineStyle - The thumb's focused outline style.
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,
);