statItem method

void statItem(
  1. String label,
  2. String value, {
  3. String icon = '•',
  4. StatTone tone = StatTone.accent,
})

Writes a stat item line with icon: │ ✔ Label: Value

Useful for stat cards and dashboard displays.

Implementation

void statItem(
  String label,
  String value, {
  String icon = '•',
  StatTone tone = StatTone.accent,
}) {
  final color = toneColor(tone, theme);
  final line = StringBuffer();
  line.write('$color$icon${theme.reset} ');
  line.write('${theme.dim}$label:${theme.reset} ');
  line.write('${theme.selection}${theme.bold}$value${theme.reset}');
  gutterLine(line.toString());
}