alert static method

void alert(
  1. dynamic message, {
  2. Map<String, dynamic>? context,
  3. bool alwaysPrint = false,
})

Logs an alert message to the console. Alert is for conditions that require immediate attention. It will only print if your app's environment is in debug mode. You can override this by setting alwaysPrint = true. Use context to interpolate values into the message, e.g. 'User {id}' with {'id': '123'}.

Implementation

static void alert(
  dynamic message, {
  Map<String, dynamic>? context,
  bool alwaysPrint = false,
}) {
  _loggerPrint(message ?? "", 'alert', alwaysPrint, context: context);
}