CupertinoSlider constructor
Creates an iOS-style slider.
The slider itself does not maintain any state. Instead, when the state of
the slider changes, the widget calls the onChanged callback. Most widgets
that use a slider will listen for the onChanged callback and rebuild the
slider with a new value to update the visual appearance of the slider.
valuedetermines currently selected value for this slider.onChangedis called when the user selects a new value for the slider.onChangeStartis called when the user starts to select a new value for the slider.onChangeEndis called when the user is done selecting a new value for the slider.
Implementation
const CupertinoSlider({
Key key,
@required this.value,
@required this.onChanged,
this.onChangeStart,
this.onChangeEnd,
this.min = 0.0,
this.max = 1.0,
this.divisions,
this.activeColor,
}) : assert(value != null),
assert(min != null),
assert(max != null),
assert(value >= min && value <= max),
assert(divisions == null || divisions > 0),
super(key: key);