alert method

void alert(
  1. dynamic message,
  2. String line, {
  3. OutputFn? output,
})

Logs an alert 🟡

Line must be set to line to "<#l=>".

Implementation

void alert(
  final dynamic message,
  final String line, {
  final OutputFn? output,
}) {
  final _messageAsString = message.toString();
  final _entry = _log(
    prefix: "🟡",
    message: _messageAsString,
    line: line,
    output: output,
  );
  allEntries.add(_entry);
  alertEntries.add(_entry);
}