MDCSlider class

MDC Slider provides an implementation of the Material Design slider component. It is modeled after the browser’s element. Sliders are fully RTL-aware, and conform to the WAI-ARIA slider authoring practices.

Javascript: mdc.slider.MDCSlider.

Inheritance
Implemented types

Constructors

MDCSlider(Element root, [MDCFoundation? foundation, dynamic args])

Properties

disabled bool?
getter/setter pair
foundation MDCFoundation
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
js → SliderComponent
The underlying Javascript component.
no setteroverride
max num?
getter/setter pair
min num?
getter/setter pair
ripple MDCRipple
no setteroverride
root Element
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
step num?
getter/setter pair
value num?
getter/setter pair

Methods

destroy() → void
Releases resources and removes any listeners.
inherited
emit(String type, dynamic data, [bool shouldBubble = false]) → void
inherited
layout() → void
listen(String type, EventListener handler, {bool captureThis = false}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stepDown([num amount = 1]) → void
stepUp([num amount = 1]) → void
toString() String
A string representation of this object.
inherited
unlisten(String type, EventListener handler, {bool captureThis = false}) → void
inherited

Operators

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

Static Methods

attachTo(Element root) MDCSlider

Constants

changeEvent → const String
whenever the slider value is changed and committed by way of a user event, e.g. when a user stops dragging the slider or changes the value using the arrow keys. The detail property of the event is set to the slider instance that was affected.
inputEvent → const String
Emitted whenever the slider value is changed by way of a user event, e.g. when a user is dragging the slider or changing the value using the arrow keys. The detail property of the event is set to the slider instance that was affected.