RangeSliderTrackShape class Null safety

Base class for RangeSlider track shapes.

The slider's thumbs move along the track. A discrete slider's tick marks are drawn after the track, but before the thumb, and are aligned with the track.

The getPreferredRect helps position the slider thumbs and tick marks relative to the track.

See also:

Implementers

Constructors

RangeSliderTrackShape()
This abstract const constructor enables subclasses to provide const constructors so that they can be used in const expressions.
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

Methods

getPreferredRect({required RenderBox parentBox, Offset offset = Offset.zero, required SliderThemeData sliderTheme, bool isEnabled, bool isDiscrete}) Rect
Returns the preferred bounds of the shape.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
paint(PaintingContext context, Offset offset, {required RenderBox parentBox, required SliderThemeData sliderTheme, required Animation<double> enableAnimation, required Offset startThumbCenter, required Offset endThumbCenter, bool isEnabled = false, bool isDiscrete = false, required TextDirection textDirection}) → void
Paints the track shape based on the state passed to it.
toString() String
A string representation of this object.
inherited

Operators

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