SfSliderThemeData.raw constructor

SfSliderThemeData.raw({
  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? thumbStrokeColor,
  32. Color? activeDividerStrokeColor,
  33. Color? inactiveDividerStrokeColor,
  34. double? trackCornerRadius,
  35. double? overlayRadius,
  36. double? thumbRadius,
  37. double? activeDividerRadius,
  38. double? inactiveDividerRadius,
  39. double? thumbStrokeWidth,
  40. double? activeDividerStrokeWidth,
  41. double? inactiveDividerStrokeWidth,
})

Returns a new instance of SfSliderThemeData for the given values.

Implementation

factory SfSliderThemeData.raw({
  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? thumbStrokeColor,
  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 SfSliderThemeData(
    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,
    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,
    overlayRadius: overlayRadius,
    thumbRadius: thumbRadius,
    activeDividerRadius: activeDividerRadius,
    inactiveDividerRadius: inactiveDividerRadius,
    thumbStrokeWidth: thumbStrokeWidth,
    activeDividerStrokeWidth: activeDividerStrokeWidth,
    inactiveDividerStrokeWidth: inactiveDividerStrokeWidth,
    trackCornerRadius: trackCornerRadius,
  );
}