boolean method

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

Creates checkbox with label, description and initial value.

Implementation

@override
bool boolean({
  required String label,
  String? description,
  bool initial = false,
}) =>
    addKnob(
      Knob(
        label: label,
        description: description,
        knobValue: BoolKnobValue(
          value: initial,
        ),
      ),
    );