ArcaneSlider.range constructor

const ArcaneSlider.range({
  1. String? id,
  2. required double minValue,
  3. required double maxValue,
  4. double min = 0,
  5. double max = 100,
  6. double? step,
  7. String? label,
  8. bool showValue = true,
  9. String? valuePrefix,
  10. String? valueSuffix,
  11. int valueDecimals = 0,
  12. SliderVariant variant = SliderVariant.primary,
  13. ComponentSize size = ComponentSize.md,
  14. bool showSteps = false,
  15. bool disabled = false,
  16. void onRangeChanged(
    1. double min,
    2. double max
    )?,
  17. ArcaneInteraction? onChangeAction,
  18. ArcaneStyleData? styles,
  19. ArcaneDecoration? decoration,
  20. Key? key,
})

Implementation

const ArcaneSlider.range({
  this.id,
  required double minValue,
  required double maxValue,
  this.min = 0,
  this.max = 100,
  this.step,
  this.label,
  this.showValue = true,
  this.valuePrefix,
  this.valueSuffix,
  this.valueDecimals = 0,
  this.variant = SliderVariant.primary,
  this.size = ComponentSize.md,
  this.showSteps = false,
  this.disabled = false,
  this.onRangeChanged,
  this.onChangeAction,
  this.styles,
  this.decoration,
  super.key,
})  : value = 0,
      onChanged = null,
      isRange = true,
      rangeMin = minValue,
      rangeMax = maxValue;