CheckboxList constructor
const
CheckboxList({
- required List<
String> items, - AnsiColorType? selectionColor,
- AnsiColorType? hoverColor,
- AnsiColorType? textColor,
- BorderStyle? borderStyle,
- int spacing = 1,
- Axis direction = Axis.vertical,
- 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),
});