checkbox static method

void checkbox(
  1. String text, {
  2. bool checked = false,
})

Display a checkbox item

Implementation

static void checkbox(String text, {bool checked = false}) {
  final mark = checked ? '☑' : '☐';
  stdout.writeln('  $mark $text');
}