RoundSliderTickMarkShape class Null safety

The default shape of each Slider tick mark.

Tick marks are only displayed if the slider is discrete, which can be done by setting the Slider.divisions to an integer value.

It paints a solid circle, centered in the on the track. The color is determined by the Slider's enabled state and track's active states. These colors are defined in: SliderThemeData.activeTrackColor, SliderThemeData.inactiveTrackColor, SliderThemeData.disabledActiveTrackColor, SliderThemeData.disabledInactiveTrackColor.

![A slider widget, consisting of 5 divisions and showing the round slider tick mark shape.] (https://flutter.github.io/assets-for-api-docs/assets/material/rounded_slider_tick_mark_shape.png)

See also:

  • Slider, which includes tick marks defined by this shape.
  • SliderTheme, which can be used to configure the tick mark shape of all sliders in a widget subtree.
Inheritance

Constructors

RoundSliderTickMarkShape({double? tickMarkRadius})
Create a slider tick mark that draws a circle.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tickMarkRadius double?
The preferred radius of the round tick mark.
final

Methods

getPreferredSize({required SliderThemeData sliderTheme, required bool isEnabled}) Size
Returns the preferred size of the shape.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
paint(PaintingContext context, Offset center, {required RenderBox parentBox, required SliderThemeData sliderTheme, required Animation<double> enableAnimation, required TextDirection textDirection, required Offset thumbCenter, required bool isEnabled}) → void
Paints the slider track.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited