SfRangeSliderThemeData constructor

SfRangeSliderThemeData({
  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? activeTickColor,
  15. Color? inactiveTickColor,
  16. Color? disabledActiveTickColor,
  17. Color? disabledInactiveTickColor,
  18. Color? activeMinorTickColor,
  19. Color? inactiveMinorTickColor,
  20. Color? disabledActiveMinorTickColor,
  21. Color? disabledInactiveMinorTickColor,
  22. Color? overlayColor,
  23. Color? inactiveDividerColor,
  24. Color? activeDividerColor,
  25. Color? disabledActiveTrackColor,
  26. Color? disabledInactiveTrackColor,
  27. Color? disabledActiveDividerColor,
  28. Color? disabledInactiveDividerColor,
  29. Color? disabledThumbColor,
  30. Color? tooltipBackgroundColor,
  31. Color? overlappingTooltipStrokeColor,
  32. Color? thumbStrokeColor,
  33. Color? overlappingThumbStrokeColor,
  34. Color? activeDividerStrokeColor,
  35. Color? inactiveDividerStrokeColor,
  36. double? trackCornerRadius,
  37. double? overlayRadius,
  38. double? thumbRadius,
  39. double? activeDividerRadius,
  40. double? inactiveDividerRadius,
  41. double? thumbStrokeWidth,
  42. double? activeDividerStrokeWidth,
  43. double? inactiveDividerStrokeWidth,
})

Returns a new instance of SfRangeSliderThemeData.raw for the given values.

If any of the values are null, the default values will be set.

Implementation

factory SfRangeSliderThemeData(
    {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? 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? tooltipBackgroundColor,
    Color? overlappingTooltipStrokeColor,
    Color? thumbStrokeColor,
    Color? overlappingThumbStrokeColor,
    Color? activeDividerStrokeColor,
    Color? inactiveDividerStrokeColor,
    double? trackCornerRadius,
    double? overlayRadius,
    double? thumbRadius,
    double? activeDividerRadius,
    double? inactiveDividerRadius,
    double? thumbStrokeWidth,
    double? activeDividerStrokeWidth,
    double? inactiveDividerStrokeWidth}) {
  brightness = brightness ?? Brightness.light;
  activeTrackHeight ??= 6.0;
  inactiveTrackHeight ??= 4.0;
  overlayRadius ??= 24.0;
  thumbRadius ??= 10.0;

  return SfRangeSliderThemeData.raw(
      brightness: brightness,
      activeTrackHeight: activeTrackHeight,
      inactiveTrackHeight: inactiveTrackHeight,
      tickSize: tickSize,
      minorTickSize: minorTickSize,
      tickOffset: tickOffset,
      labelOffset: labelOffset,
      inactiveLabelStyle: inactiveLabelStyle,
      activeLabelStyle: activeLabelStyle,
      tooltipTextStyle: tooltipTextStyle,
      inactiveTrackColor: inactiveTrackColor,
      activeTrackColor: activeTrackColor,
      inactiveDividerColor: inactiveDividerColor,
      activeDividerColor: activeDividerColor,
      thumbColor: thumbColor,
      thumbStrokeColor: thumbStrokeColor,
      overlappingThumbStrokeColor: overlappingThumbStrokeColor,
      activeDividerStrokeColor: activeDividerStrokeColor,
      inactiveDividerStrokeColor: inactiveDividerStrokeColor,
      overlayColor: overlayColor,
      activeTickColor: activeTickColor,
      inactiveTickColor: inactiveTickColor,
      disabledActiveTickColor: disabledActiveTickColor,
      disabledInactiveTickColor: disabledInactiveTickColor,
      activeMinorTickColor: activeMinorTickColor,
      inactiveMinorTickColor: inactiveMinorTickColor,
      disabledActiveMinorTickColor: disabledActiveMinorTickColor,
      disabledInactiveMinorTickColor: disabledInactiveMinorTickColor,
      disabledActiveTrackColor: disabledActiveTrackColor,
      disabledInactiveTrackColor: disabledInactiveTrackColor,
      disabledActiveDividerColor: disabledActiveDividerColor,
      disabledInactiveDividerColor: disabledInactiveDividerColor,
      disabledThumbColor: disabledThumbColor,
      tooltipBackgroundColor: tooltipBackgroundColor,
      overlappingTooltipStrokeColor: overlappingTooltipStrokeColor,
      overlayRadius: overlayRadius,
      thumbRadius: thumbRadius,
      activeDividerRadius: activeDividerRadius,
      inactiveDividerRadius: inactiveDividerRadius,
      thumbStrokeWidth: thumbStrokeWidth,
      activeDividerStrokeWidth: activeDividerStrokeWidth,
      inactiveDividerStrokeWidth: inactiveDividerStrokeWidth,
      trackCornerRadius: trackCornerRadius);
}