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.
- Implemented types
Constructors
-
Slider({SelectionTrigger eventTrigger = SelectionTrigger.tapAndDrag, SymbolRenderer? handleRenderer, D? initialDomainValue, SliderListenerCallback<
D> ? onChangeCallback, String? roleId, bool snapToDatum = false, SliderStyle? style, int layoutPaintOrder = LayoutViewPaintOrder.slider}) - Constructs a Slider.
Properties
- eventTrigger → SelectionTrigger
-
Type of input event for the slider.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layoutPaintOrder ↔ int
-
The order to paint slider on the canvas.
getter/setter pair
- role → String
-
no setteroverride
- 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
Methods
-
attachTo(
BaseChart< D> chart) → void -
Injects the behavior into a chart.
override
-
moveSliderToDomain(
D domain, {num? measure, bool skipAnimation = true}) → void -
Programmatically moves the slider to the location of
domain
on the domain axis and iffmeasure
is set moves it also to its position along the primary measure axis. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeFrom(
BaseChart< D> chart) → void -
Removes the behavior from a chart.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited