alert method

void alert(
  1. String? message, {
  2. String? style(
    1. String? message
    )?,
})

Writes message to stderr in bold white on red.

Implementation

void alert(String? message, {String? Function(String? message)? style}) =>
    _log(
      Level.critical,
      _err,
      message,
      const Style(foreground256: 15, background256: 1, isBold: true),
      style,
    );