PlatformSlider constructor

PlatformSlider({
  1. Key? key,
  2. Key? widgetKey,
  3. required double value,
  4. required void onChanged(
    1. double
    )?,
  5. void onChangeStart(
    1. double
    )?,
  6. void onChangeEnd(
    1. double
    )?,
  7. Color? activeColor,
  8. int? divisions,
  9. double min = 0.0,
  10. double max = 1.0,
  11. Color? thumbColor,
  12. PlatformBuilder<MaterialSliderData>? material,
  13. 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);