copyWith method

  1. @override
TDSliderThemeData 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. SliderComponentShape? overlayShape,
  18. SliderTickMarkShape? tickMarkShape,
  19. SliderComponentShape? thumbShape,
  20. SliderTrackShape? trackShape,
  21. SliderComponentShape? valueIndicatorShape,
  22. RangeSliderTickMarkShape? rangeTickMarkShape,
  23. RangeSliderThumbShape? rangeThumbShape,
  24. RangeSliderTrackShape? rangeTrackShape,
  25. RangeSliderValueIndicatorShape? rangeValueIndicatorShape,
  26. ShowValueIndicator? showValueIndicator,
  27. TextStyle? valueIndicatorTextStyle,
  28. double? minThumbSeparation,
  29. RangeThumbSelector? thumbSelector,
  30. MaterialStateProperty<MouseCursor?>? mouseCursor,
  31. bool? showScaleValue,
  32. bool? showThumbValue,
  33. TextStyle? disabledScaleTextStyle,
  34. TextStyle? disabledThumbTextStyle,
  35. TextStyle? scaleTextStyle,
  36. TextStyle? thumbTextStyle,
  37. int? divisions,
  38. double? min,
  39. double? max,
  40. ScaleFormatter? scaleFormatter,
  41. SliderInteraction? allowedInteraction,
})
override

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

Implementation

@override
TDSliderThemeData 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,
  SliderComponentShape? overlayShape,
  SliderTickMarkShape? tickMarkShape,
  SliderComponentShape? thumbShape,
  SliderTrackShape? trackShape,
  SliderComponentShape? valueIndicatorShape,
  RangeSliderTickMarkShape? rangeTickMarkShape,
  RangeSliderThumbShape? rangeThumbShape,
  RangeSliderTrackShape? rangeTrackShape,
  RangeSliderValueIndicatorShape? rangeValueIndicatorShape,
  ShowValueIndicator? showValueIndicator,
  TextStyle? valueIndicatorTextStyle,
  double? minThumbSeparation,
  RangeThumbSelector? thumbSelector,
  MaterialStateProperty<MouseCursor?>? mouseCursor,
  bool? showScaleValue,
  bool? showThumbValue,
  TextStyle? disabledScaleTextStyle,
  TextStyle? disabledThumbTextStyle,
  TextStyle? scaleTextStyle,
  TextStyle? thumbTextStyle,
  int? divisions,
  double? min,
  double? max,
  ScaleFormatter? scaleFormatter,
  SliderInteraction? allowedInteraction,
}) {
  return TDSliderThemeData(
      trackHeight: trackHeight ?? this.trackHeight,
      activeTrackColor: activeTrackColor ?? this.activeTrackColor,
      inactiveTrackColor: inactiveTrackColor ?? this.inactiveTrackColor,
      disabledActiveTrackColor:
          disabledActiveTrackColor ?? this.disabledActiveTrackColor,
      disabledInactiveTrackColor:
          disabledInactiveTrackColor ?? this.disabledInactiveTrackColor,
      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,
      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,
      minThumbSeparation: minThumbSeparation ?? this.minThumbSeparation,
      thumbSelector: thumbSelector ?? this.thumbSelector,
      mouseCursor: mouseCursor ?? this.mouseCursor,
      showScaleValue: showScaleValue ?? this.showScaleValue,
      showThumbValue: showThumbValue ?? this.showThumbValue,
      disabledScaleTextStyle:
          disabledScaleTextStyle ?? this.disabledScaleTextStyle,
      disabledThumbTextStyle:
          disabledThumbTextStyle ?? this.disabledThumbTextStyle,
      scaleTextStyle: scaleTextStyle ?? this.scaleTextStyle,
      thumbTextStyle: thumbTextStyle ?? this.thumbTextStyle,
      divisions: divisions ?? this.divisions,
      min: min ?? this.min,
      max: max ?? this.max,
      scaleFormatter: scaleFormatter ?? this.scaleFormatter);
}