ZetaRangeSelector constructor

ZetaRangeSelector({
  1. Key? key,
  2. bool? rounded,
  3. required RangeValues initialValues,
  4. double min = 0.0,
  5. double max = 100,
  6. String? label,
  7. ValueChanged<RangeValues>? onChange,
  8. int? divisions,
  9. String? semanticLabel,
  10. bool showValues = true,
})

Creates a new ZetaRangeSelector

Implementation

ZetaRangeSelector({
  super.key,
  super.rounded,
  required this.initialValues,
  this.min = 0.0,
  this.max = 100,
  this.label,
  this.onChange,
  this.divisions,
  this.semanticLabel,
  this.showValues = true,
}) : assert(
        min <= initialValues.start && initialValues.start <= initialValues.end && initialValues.end <= max,
        'The start value must be less than or equal to the end value, and both must be within the range of min and max.',
      );