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.
Can optionally hold a null value
Implementation
double? slider({
required String label,
String? description,
double? initialValue,
double min = 0,
double max = 20,
int? divisions,
}) {
return onKnobAdded(
DoubleSliderKnob.nullable(
label: label,
initialValue: initialValue,
description: description,
min: min,
max: max,
divisions: divisions,
),
);
}