checkbox method

String checkbox(
  1. bool checked
)

Returns a styled checkbox based on checked state.

Uses theme colors and glyph symbols for on/off states.

Implementation

String checkbox(bool checked) {
  final sym = checked ? glyphs.checkboxOnSymbol : glyphs.checkboxOffSymbol;
  final col = checked ? theme.checkboxOn : theme.checkboxOff;
  return '$col$sym${theme.reset}';
}