SliderState class

Default parameters for the slider.

Constructors

SliderState.new({required double minValue, required double maxValue, double? initialValue, bool isValueRounded = true, ValueChanged<double>? onChanged, int? divisions})

Properties

divisions int?
Number of slider divisions. Default is null.
final
hashCode int
The hash code for this object.
no setterinherited
initialValue double?
Default initialValue is (widget.sliderState.minValue + widget.sliderState.maxValue) / 2.
final
isValueRounded bool
Whether the slider value should be rounded or not. Default is true.
final
maxValue double
Default maxValue is 10.
final
minValue double
Default minValue is 0.
final
onChanged ValueChanged<double>?
Callback to execute code when the slider value changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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