icon method

String icon(
  1. String char, {
  2. StatTone tone = StatTone.accent,
})

Returns a styled icon with the given tone color.

Implementation

String icon(String char, {StatTone tone = StatTone.accent}) {
  final color = toneColor(tone, theme);
  return '${theme.bold}$color$char${theme.reset}';
}