PlatformSlider constructor
PlatformSlider({
- Key? key,
- Key? widgetKey,
- required double value,
- required void onChanged()?,
- void onChangeStart()?,
- void onChangeEnd()?,
- Color? activeColor,
- int? divisions,
- double min = 0.0,
- double max = 1.0,
- Color? thumbColor,
- PlatformBuilder<
MaterialSliderData> ? material, - PlatformBuilder<
CupertinoSliderData> ? cupertino,
Implementation
PlatformSlider({
super.key,
this.widgetKey,
required this.value,
required this.onChanged,
this.onChangeStart,
this.onChangeEnd,
this.activeColor,
this.divisions,
this.min = 0.0,
this.max = 1.0,
this.thumbColor,
this.material,
this.cupertino,
}) : assert(divisions == null || divisions > 0),
assert(value >= min && value <= max);