SliderTickMarkShape class

Base class for slider tick mark shapes.

Create a subclass of this if you would like a custom slider tick mark shape. This is a simplified version of SliderComponentShape with a SliderThemeData passed when getting the preferred size.

The tick mark painting can be skipped by specifying noTickMark for SliderThemeData.tickMarkShape.

See also:

Implementers

Constructors

SliderTickMarkShape()
Abstract const constructor. This 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-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Properties

noTickMark SliderTickMarkShape
Special instance of SliderTickMarkShape to skip the tick mark painting. [...]
final