checkboxLine method

String checkboxLine(
  1. String content, {
  2. required bool focused,
  3. required bool checked,
})

Builds a checkbox item line.

Combines arrow, checkbox, and content. Common in multi-select views.

Example output: ▶ ■ Checked item or □ Unchecked item

Implementation

String checkboxLine(
  String content, {
  required bool focused,
  required bool checked,
}) {
  return '${arrow(focused)} ${checkbox(checked)} $content';
}