RadioSlider constructor

const RadioSlider({
  1. Key? key,
  2. int divisions = 1,
  3. bool outerCircle = true,
  4. int value = 0,
  5. RadioSliderOrientation orientation = RadioSliderOrientation.Horizontal,
  6. required ValueChanged<int> onChanged,
  7. Color? activeColor,
})

Implementation

const RadioSlider({
  Key? key,
  this.divisions = 1,
  this.outerCircle = true,
  this.value = 0,
  this.orientation = RadioSliderOrientation.Horizontal,
  required this.onChanged,
  this.activeColor,
})  : assert(divisions >= 1),
      assert(value >= 0 && value <= divisions),
      super(key: key);