copyWith method

AnnotatedSliderThemeData copyWith({
  1. double? trackHeight,
  2. Color? activeTrackColor,
  3. Color? inactiveTrackColor,
  4. Color? secondaryActiveTrackColor,
  5. Color? disabledActiveTrackColor,
  6. Color? disabledInactiveTrackColor,
  7. Color? disabledSecondaryActiveTrackColor,
  8. Color? activeTickMarkColor,
  9. Color? inactiveTickMarkColor,
  10. Color? disabledActiveTickMarkColor,
  11. Color? disabledInactiveTickMarkColor,
  12. Color? thumbColor,
  13. Color? overlappingShapeStrokeColor,
  14. Color? disabledThumbColor,
  15. Color? overlayColor,
  16. Color? valueIndicatorColor,
  17. Color? valueIndicatorStrokeColor,
  18. AnnotatedSliderComponentShape? overlayShape,
  19. AnnotatedSliderTickMarkShape? tickMarkShape,
  20. AnnotatedSliderComponentShape? thumbShape,
  21. AnnotatedSliderTrackShape? trackShape,
  22. AnnotatedSliderComponentShape? valueIndicatorShape,
  23. AnnotatedRangeSliderTickMarkShape? rangeTickMarkShape,
  24. AnnotatedRangeSliderThumbShape? rangeThumbShape,
  25. AnnotatedRangeSliderTrackShape? rangeTrackShape,
  26. AnnotatedRangeSliderValueIndicatorShape? rangeValueIndicatorShape,
  27. AnnotatedSliderMarkerShape? markerShape,
  28. ShowValueIndicator? showValueIndicator,
  29. TextStyle? valueIndicatorTextStyle,
  30. TextStyle? markerLabelTextStyle,
  31. double? minThumbSeparation,
  32. RangeThumbSelector? thumbSelector,
  33. WidgetStateProperty<MouseCursor?>? mouseCursor,
  34. SliderInteraction? allowedInteraction,
  35. EdgeInsetsGeometry? padding,
  36. WidgetStateProperty<Size?>? thumbSize,
  37. double? trackGap,
  38. bool? year2023,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

AnnotatedSliderThemeData copyWith({
  double? trackHeight,
  Color? activeTrackColor,
  Color? inactiveTrackColor,
  Color? secondaryActiveTrackColor,
  Color? disabledActiveTrackColor,
  Color? disabledInactiveTrackColor,
  Color? disabledSecondaryActiveTrackColor,
  Color? activeTickMarkColor,
  Color? inactiveTickMarkColor,
  Color? disabledActiveTickMarkColor,
  Color? disabledInactiveTickMarkColor,
  Color? thumbColor,
  Color? overlappingShapeStrokeColor,
  Color? disabledThumbColor,
  Color? overlayColor,
  Color? valueIndicatorColor,
  Color? valueIndicatorStrokeColor,
  AnnotatedSliderComponentShape? overlayShape,
  AnnotatedSliderTickMarkShape? tickMarkShape,
  AnnotatedSliderComponentShape? thumbShape,
  AnnotatedSliderTrackShape? trackShape,
  AnnotatedSliderComponentShape? valueIndicatorShape,
  AnnotatedRangeSliderTickMarkShape? rangeTickMarkShape,
  AnnotatedRangeSliderThumbShape? rangeThumbShape,
  AnnotatedRangeSliderTrackShape? rangeTrackShape,
  AnnotatedRangeSliderValueIndicatorShape? rangeValueIndicatorShape,
  AnnotatedSliderMarkerShape? markerShape,
  ShowValueIndicator? showValueIndicator,
  TextStyle? valueIndicatorTextStyle,
  TextStyle? markerLabelTextStyle,
  double? minThumbSeparation,
  RangeThumbSelector? thumbSelector,
  WidgetStateProperty<MouseCursor?>? mouseCursor,
  SliderInteraction? allowedInteraction,
  EdgeInsetsGeometry? padding,
  WidgetStateProperty<Size?>? thumbSize,
  double? trackGap,
  bool? year2023,
}) {
  return AnnotatedSliderThemeData(
    trackHeight: trackHeight ?? this.trackHeight,
    activeTrackColor: activeTrackColor ?? this.activeTrackColor,
    inactiveTrackColor: inactiveTrackColor ?? this.inactiveTrackColor,
    secondaryActiveTrackColor:
        secondaryActiveTrackColor ?? this.secondaryActiveTrackColor,
    disabledActiveTrackColor:
        disabledActiveTrackColor ?? this.disabledActiveTrackColor,
    disabledInactiveTrackColor:
        disabledInactiveTrackColor ?? this.disabledInactiveTrackColor,
    disabledSecondaryActiveTrackColor:
        disabledSecondaryActiveTrackColor ??
        this.disabledSecondaryActiveTrackColor,
    activeTickMarkColor: activeTickMarkColor ?? this.activeTickMarkColor,
    inactiveTickMarkColor:
        inactiveTickMarkColor ?? this.inactiveTickMarkColor,
    disabledActiveTickMarkColor:
        disabledActiveTickMarkColor ?? this.disabledActiveTickMarkColor,
    disabledInactiveTickMarkColor:
        disabledInactiveTickMarkColor ?? this.disabledInactiveTickMarkColor,
    thumbColor: thumbColor ?? this.thumbColor,
    overlappingShapeStrokeColor:
        overlappingShapeStrokeColor ?? this.overlappingShapeStrokeColor,
    disabledThumbColor: disabledThumbColor ?? this.disabledThumbColor,
    overlayColor: overlayColor ?? this.overlayColor,
    valueIndicatorColor: valueIndicatorColor ?? this.valueIndicatorColor,
    valueIndicatorStrokeColor:
        valueIndicatorStrokeColor ?? this.valueIndicatorStrokeColor,
    overlayShape: overlayShape ?? this.overlayShape,
    tickMarkShape: tickMarkShape ?? this.tickMarkShape,
    thumbShape: thumbShape ?? this.thumbShape,
    trackShape: trackShape ?? this.trackShape,
    valueIndicatorShape: valueIndicatorShape ?? this.valueIndicatorShape,
    rangeTickMarkShape: rangeTickMarkShape ?? this.rangeTickMarkShape,
    rangeThumbShape: rangeThumbShape ?? this.rangeThumbShape,
    rangeTrackShape: rangeTrackShape ?? this.rangeTrackShape,
    rangeValueIndicatorShape:
        rangeValueIndicatorShape ?? this.rangeValueIndicatorShape,
    showValueIndicator: showValueIndicator ?? this.showValueIndicator,
    valueIndicatorTextStyle:
        valueIndicatorTextStyle ?? this.valueIndicatorTextStyle,
    markerShape: markerShape ?? this.markerShape,
    markerLabelTextStyle: markerLabelTextStyle ?? this.markerLabelTextStyle,
    minThumbSeparation: minThumbSeparation ?? this.minThumbSeparation,
    thumbSelector: thumbSelector ?? this.thumbSelector,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    allowedInteraction: allowedInteraction ?? this.allowedInteraction,
    padding: padding ?? this.padding,
    thumbSize: thumbSize ?? this.thumbSize,
    trackGap: trackGap ?? this.trackGap,
    year2023: year2023 ?? this.year2023,
  );
}