GlassKnob constructor

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

Creates a knob; size must be at least 32.

Implementation

const GlassKnob({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0,
  this.max = 1,
  this.divisions,
  this.onChangeStart,
  this.onChangeEnd,
  this.size = 64,
  this.activeColor,
  this.child,
  this.semanticLabel,
  this.semanticFormatter,
  this.focusNode,
  this.autofocus = false,
}) : assert(divisions == null || divisions > 0),
     assert(size >= 32);