Slider<D> class

Chart behavior that adds a slider widget to a chart. When the slider is dropped after drag, it will report its domain position and nearest datum value. This behavior only supports charts that use continuous scales.

Input event types: tapAndDrag - Mouse/Touch on the handle and drag across the chart. pressHold - Mouse/Touch on the handle and drag across the chart instead of panning. longPressHold - Mouse/Touch for a while on the handle, then drag across the data.

Inheritance
Annotations

Constructors

Slider({SelectionTrigger? eventTrigger, SymbolRenderer? handleRenderer, dynamic initialDomainValue, String? roleId, SliderListenerCallback? onChangeCallback, bool snapToDatum = false, SliderStyle? style, int layoutPaintOrder = common.LayoutViewPaintOrder.slider})
Constructs a Slider.
factory

Properties

desiredGestures Set<GestureType>
final
eventTrigger SelectionTrigger
Type of input event for the slider.
final
handleRenderer → SymbolRenderer?
Renderer for the handle. Defaults to a rectangle.
final
hashCode int
The hash code for this object.
no setteroverride
initialDomainValue → dynamic
Initial domain position of the slider, in domain units.
final
layoutPaintOrder int?
The order to paint slider on the canvas.
final
onChangeCallback SliderListenerCallback?
Callback function that will be called when the position of the slider changes during a drag event.
final
role String
no setteroverride
roleId String?
Custom role ID for this slider
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapToDatum bool
Whether or not the slider will snap onto the nearest datum (by domain distance) when dragged.
final
style SliderStyle?
Color and size styles for the slider.
final

Methods

createCommonBehavior() → Slider<D>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateCommonBehavior(ChartBehavior<D> commonBehavior) → void
override

Operators

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