input method

double input({
  1. required String label,
  2. String? description,
  3. double initialValue = 0,
})

Creates a textfield which users can type double values into. You can use the num?.toInt() function to turn this into an integer

Implementation

double input({
  required String label,
  String? description,
  double initialValue = 0,
}) {
  return onKnobAdded(
    DoubleInputKnob(
      label: label,
      initialValue: initialValue,
      description: description,
    ),
  )!;
}