OneUISlider constructor

const OneUISlider({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double>? onChanged,
  4. double thumbRadius = 10.0,
  5. double onClickThumbRadius = 13.0,
  6. ValueChanged<double>? onChangeStart,
  7. ValueChanged<double>? onChangeEnd,
  8. double min = 0.0,
  9. double max = 1.0,
  10. int? divisions,
  11. String? label,
  12. Color? activeColor,
  13. Color? inactiveColor,
  14. MouseCursor? mouseCursor,
  15. SemanticFormatterCallback? semanticFormatterCallback,
  16. FocusNode? focusNode,
  17. bool autofocus = false,
  18. bool useOneUIColor = false,
})

Implementation

const OneUISlider({
  Key? key,
  required this.value,
  required this.onChanged,
  this.thumbRadius = 10.0,
  this.onClickThumbRadius = 13.0,
  this.onChangeStart,
  this.onChangeEnd,
  this.min = 0.0,
  this.max = 1.0,
  this.divisions,
  this.label,
  this.activeColor,
  this.inactiveColor,
  this.mouseCursor,
  this.semanticFormatterCallback,
  this.focusNode,
  this.autofocus = false,
  this.useOneUIColor = false,
})  : assert(min <= max),
      assert(value >= min && value <= max),
      assert(divisions == null || divisions > 0),
      super(key: key);