copyWith method
If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.
A new instance of ZeroSliderStyle with the same properties as the original instance, except for the properties that are explicitly overridden.
Implementation
ZeroSliderStyle copyWith({
Color? activeColor,
Color? inactiveColor,
Color? tickColor,
ZeroTooltipVariant? tooltipVariant,
Color? thumbColor,
bool? tickBehavior,
Color? tooltipColor,
}) {
return ZeroSliderStyle(
activeColor: activeColor ?? this.activeColor,
inactiveColor: inactiveColor ?? this.inactiveColor,
tickColor: tickColor ?? this.tickColor,
tooltipVariant: tooltipVariant ?? this.tooltipVariant,
thumbColor: thumbColor ?? this.thumbColor,
tickBehavior: tickBehavior ?? this.tickBehavior,
tooltipColor: tooltipColor ?? this.tooltipColor,
);
}