slider method
Creates a slider that can be slid to specific double values. You can use
the num.toInt()
function to make this into an integer
Implementation
double slider({
required String label,
String? description,
double initialValue = 0,
double min = 0,
double max = 20,
int? divisions,
}) {
return onKnobAdded(
DoubleSliderKnob(
label: label,
initialValue: initialValue,
description: description,
min: min,
max: max,
divisions: divisions,
),
)!;
}