emergency static method

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

Logs an emergency message to the console. Emergency is the highest severity level for system-wide critical failures. 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 emergency(
  dynamic message, {
  Map<String, dynamic>? context,
  bool alwaysPrint = false,
}) {
  _loggerPrint(message ?? "", 'emergency', alwaysPrint, context: context);
}