booleanOrNull method

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

Creates a checkbox that can be toggled on and off and optionally hold a null value

Implementation

bool? booleanOrNull({
  required String label,
  String? description,
  bool? initialValue,
}) {
  return onKnobAdded(
    BooleanKnob.nullable(
      label: label,
      description: description,
      initialValue: initialValue,
    ),
  );
}