GlassRangeSlider constructor

const GlassRangeSlider({
  1. Key? key,
  2. required GlassRange values,
  3. required ValueChanged<GlassRange>? onChanged,
  4. double min = 0,
  5. double max = 1,
  6. int? divisions,
  7. ValueChanged<GlassRange>? onChangeStart,
  8. ValueChanged<GlassRange>? onChangeEnd,
  9. Color? activeColor,
  10. String? semanticLabel,
  11. String semanticFormatter(
    1. double value
    )?,
  12. FocusNode? focusNode,
  13. FocusNode? endFocusNode,
  14. bool autofocus = false,
})

Creates a range slider showing values between min and max.

Implementation

const GlassRangeSlider({
  super.key,
  required this.values,
  required this.onChanged,
  this.min = 0,
  this.max = 1,
  this.divisions,
  this.onChangeStart,
  this.onChangeEnd,
  this.activeColor,
  this.semanticLabel,
  this.semanticFormatter,
  this.focusNode,
  this.endFocusNode,
  this.autofocus = false,
}) : assert(divisions == null || divisions > 0),
     assert(min <= max);