styledMessage method

void styledMessage(
  1. String message, {
  2. String icon = 'ℹ',
  3. StatTone tone = StatTone.info,
  4. bool bold = false,
})

Writes a styled message line with icon: │ ℹ Message

Useful for info boxes, toasts, and notifications.

Implementation

void styledMessage(
  String message, {
  String icon = 'ℹ',
  StatTone tone = StatTone.info,
  bool bold = false,
}) {
  final color = toneColor(tone, theme);
  final iconPart = '${theme.bold}$color$icon${theme.reset}';
  final msgPart = bold ? '${theme.bold}$message${theme.reset}' : message;
  gutterLine('$iconPart $msgPart');
}