copyWith method

ZeroSliderStyle copyWith({
  1. Color? activeColor,
  2. Color? inactiveColor,
  3. Color? tickColor,
  4. ZeroTooltipVariant? tooltipVariant,
  5. Color? thumbColor,
  6. bool? tickBehavior,
  7. Color? tooltipColor,
})

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,
  );
}