CheckboxList constructor

const CheckboxList({
  1. required List<String> items,
  2. AnsiColorType? selectionColor,
  3. AnsiColorType? hoverColor,
  4. AnsiColorType? textColor,
  5. BorderStyle? borderStyle,
  6. int spacing = 1,
  7. Axis direction = Axis.vertical,
  8. EdgeInsets padding = const EdgeInsets.all(1),
})

Padding applied around the entire checkbox list. Creates a CheckboxList.

  • items must not be null or empty.
  • spacing controls the gap between items.
  • direction sets layout orientation.

Implementation

/// Creates a [CheckboxList].
///
/// - [items] must not be null or empty.
/// - [spacing] controls the gap between items.
/// - [direction] sets layout orientation.
const CheckboxList({
  required this.items,
  this.selectionColor,
  this.hoverColor,
  this.textColor,
  this.borderStyle,
  this.spacing = 1,
  this.direction = Axis.vertical,
  super.padding = const EdgeInsets.all(1),
});