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.
labelis required and will always be displayed.selectionColorsets the background color when checked.hoverColorsets the background color when hovered but unchecked.textColorsets the label text color.widthadds extra spacing after the label.
Implementation
const Checkbox({
required this.label,
this.selectionColor,
this.hoverColor,
this.textColor,
this.width = 0,
});