copyWith method

  1. @override
SfRangeSliderThemeData copyWith({
  1. Brightness? brightness,
  2. double? activeTrackHeight,
  3. double? inactiveTrackHeight,
  4. Size? tickSize,
  5. Size? minorTickSize,
  6. Offset? tickOffset,
  7. Offset? labelOffset,
  8. TextStyle? inactiveLabelStyle,
  9. TextStyle? activeLabelStyle,
  10. TextStyle? tooltipTextStyle,
  11. Color? inactiveTrackColor,
  12. Color? activeTrackColor,
  13. Color? thumbColor,
  14. Color? thumbStrokeColor,
  15. Color? overlappingThumbStrokeColor,
  16. Color? activeDividerStrokeColor,
  17. Color? inactiveDividerStrokeColor,
  18. Color? activeTickColor,
  19. Color? inactiveTickColor,
  20. Color? disabledActiveTickColor,
  21. Color? disabledInactiveTickColor,
  22. Color? activeMinorTickColor,
  23. Color? inactiveMinorTickColor,
  24. Color? disabledActiveMinorTickColor,
  25. Color? disabledInactiveMinorTickColor,
  26. Color? overlayColor,
  27. Color? inactiveDividerColor,
  28. Color? activeDividerColor,
  29. Color? disabledActiveTrackColor,
  30. Color? disabledInactiveTrackColor,
  31. Color? disabledActiveDividerColor,
  32. Color? disabledInactiveDividerColor,
  33. Color? disabledThumbColor,
  34. Color? activeRegionColor,
  35. Color? inactiveRegionColor,
  36. Color? tooltipBackgroundColor,
  37. Color? overlappingTooltipStrokeColor,
  38. double? trackCornerRadius,
  39. double? overlayRadius,
  40. double? thumbRadius,
  41. double? activeDividerRadius,
  42. double? inactiveDividerRadius,
  43. double? thumbStrokeWidth,
  44. double? activeDividerStrokeWidth,
  45. double? inactiveDividerStrokeWidth,
})
override

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

Implementation

@override
SfRangeSliderThemeData copyWith({
  Brightness? brightness,
  double? activeTrackHeight,
  double? inactiveTrackHeight,
  Size? tickSize,
  Size? minorTickSize,
  Offset? tickOffset,
  Offset? labelOffset,
  TextStyle? inactiveLabelStyle,
  TextStyle? activeLabelStyle,
  TextStyle? tooltipTextStyle,
  Color? inactiveTrackColor,
  Color? activeTrackColor,
  Color? thumbColor,
  Color? thumbStrokeColor,
  Color? overlappingThumbStrokeColor,
  Color? activeDividerStrokeColor,
  Color? inactiveDividerStrokeColor,
  Color? activeTickColor,
  Color? inactiveTickColor,
  Color? disabledActiveTickColor,
  Color? disabledInactiveTickColor,
  Color? activeMinorTickColor,
  Color? inactiveMinorTickColor,
  Color? disabledActiveMinorTickColor,
  Color? disabledInactiveMinorTickColor,
  Color? overlayColor,
  Color? inactiveDividerColor,
  Color? activeDividerColor,
  Color? disabledActiveTrackColor,
  Color? disabledInactiveTrackColor,
  Color? disabledActiveDividerColor,
  Color? disabledInactiveDividerColor,
  Color? disabledThumbColor,
  Color? activeRegionColor,
  Color? inactiveRegionColor,
  Color? tooltipBackgroundColor,
  Color? overlappingTooltipStrokeColor,
  double? trackCornerRadius,
  double? overlayRadius,
  double? thumbRadius,
  double? activeDividerRadius,
  double? inactiveDividerRadius,
  double? thumbStrokeWidth,
  double? activeDividerStrokeWidth,
  double? inactiveDividerStrokeWidth,
}) {
  return SfRangeSliderThemeData.raw(
    brightness: brightness,
    activeTrackHeight: activeTrackHeight ?? this.activeTrackHeight,
    inactiveTrackHeight: inactiveTrackHeight ?? this.inactiveTrackHeight,
    tickSize: tickSize ?? this.tickSize,
    minorTickSize: minorTickSize ?? this.minorTickSize,
    tickOffset: tickOffset ?? this.tickOffset,
    labelOffset: labelOffset ?? this.labelOffset,
    inactiveLabelStyle: inactiveLabelStyle ?? this.inactiveLabelStyle,
    activeLabelStyle: activeLabelStyle ?? this.activeLabelStyle,
    tooltipTextStyle: tooltipTextStyle ?? this.tooltipTextStyle,
    inactiveTrackColor: inactiveTrackColor ?? this.inactiveTrackColor,
    activeTrackColor: activeTrackColor ?? this.activeTrackColor,
    thumbColor: thumbColor ?? this.thumbColor,
    thumbStrokeColor: thumbStrokeColor ?? this.thumbStrokeColor,
    overlappingThumbStrokeColor:
        overlappingThumbStrokeColor ?? this.overlappingThumbStrokeColor,
    activeDividerStrokeColor:
        activeDividerStrokeColor ?? this.activeDividerStrokeColor,
    inactiveDividerStrokeColor:
        inactiveDividerStrokeColor ?? this.inactiveDividerStrokeColor,
    activeTickColor: activeTickColor ?? this.activeTickColor,
    inactiveTickColor: inactiveTickColor ?? this.inactiveTickColor,
    disabledActiveTickColor:
        disabledActiveTickColor ?? this.disabledActiveTickColor,
    disabledInactiveTickColor:
        disabledInactiveTickColor ?? this.disabledInactiveTickColor,
    activeMinorTickColor: activeMinorTickColor ?? this.activeMinorTickColor,
    inactiveMinorTickColor:
        inactiveMinorTickColor ?? this.inactiveMinorTickColor,
    disabledActiveMinorTickColor:
        disabledActiveMinorTickColor ?? this.disabledActiveMinorTickColor,
    disabledInactiveMinorTickColor:
        disabledInactiveMinorTickColor ?? this.disabledInactiveMinorTickColor,
    overlayColor: overlayColor ?? this.overlayColor,
    inactiveDividerColor: inactiveDividerColor ?? this.inactiveDividerColor,
    activeDividerColor: activeDividerColor ?? this.activeDividerColor,
    disabledActiveTrackColor:
        disabledActiveTrackColor ?? this.disabledActiveTrackColor,
    disabledInactiveTrackColor:
        disabledInactiveTrackColor ?? this.disabledInactiveTrackColor,
    disabledActiveDividerColor:
        disabledActiveDividerColor ?? this.disabledActiveDividerColor,
    disabledInactiveDividerColor:
        disabledInactiveDividerColor ?? this.disabledInactiveDividerColor,
    disabledThumbColor: disabledThumbColor ?? this.disabledThumbColor,
    tooltipBackgroundColor:
        tooltipBackgroundColor ?? this.tooltipBackgroundColor,
    overlappingTooltipStrokeColor:
        overlappingTooltipStrokeColor ?? this.overlappingTooltipStrokeColor,
    trackCornerRadius: trackCornerRadius ?? this.trackCornerRadius,
    overlayRadius: overlayRadius ?? this.overlayRadius,
    thumbRadius: thumbRadius ?? this.thumbRadius,
    activeDividerRadius: activeDividerRadius ?? this.activeDividerRadius,
    inactiveDividerRadius:
        inactiveDividerRadius ?? this.inactiveDividerRadius,
    thumbStrokeWidth: thumbStrokeWidth ?? this.thumbStrokeWidth,
    activeDividerStrokeWidth:
        activeDividerStrokeWidth ?? this.activeDividerStrokeWidth,
    inactiveDividerStrokeWidth:
        inactiveDividerStrokeWidth ?? this.inactiveDividerStrokeWidth,
  );
}