GlassKnob constructor
- Key? key,
- required double value,
- required ValueChanged<
double> ? onChanged, - double min = 0,
- double max = 1,
- int? divisions,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - double size = 64,
- Color? activeColor,
- Widget? child,
- String? semanticLabel,
- String semanticFormatter(
- double value
- FocusNode? focusNode,
- 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);