boolean method

bool boolean({
  1. required String label,
  2. String? description,
  3. bool initialValue = false,
})

Creates a checkbox that can be toggled on and off

Implementation

bool boolean({
  required String label,
  String? description,
  bool initialValue = false,
}) {
  return onKnobAdded(
    BooleanKnob(
      label: label,
      description: description,
      initialValue: initialValue,
    ),
  )!;
}