slider method

double? slider({
  1. required String label,
  2. String? description,
  3. double? initialValue,
  4. double min = 0,
  5. double max = 20,
  6. int? divisions,
})

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,
    ),
  );
}