warning static method

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

Logs a warning message to the console. 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 warning(
  dynamic message, {
  Map<String, dynamic>? context,
  bool alwaysPrint = false,
}) {
  _loggerPrint(message ?? "", 'warning', alwaysPrint, context: context);
}