Checkbox constructor
const
Checkbox({
- required String label,
- AnsiColorType? selectionColor,
- AnsiColorType? hoverColor,
- AnsiColorType? textColor,
- int width = 0,
Creates a Checkbox with the given label
and optional styling.
label
is required and will always be displayed.selectionColor
sets the background color when checked.hoverColor
sets the background color when hovered but unchecked.textColor
sets the label text color.width
adds extra spacing after the label.
Implementation
const Checkbox({
required this.label,
this.selectionColor,
this.hoverColor,
this.textColor,
this.width = 0,
});