warn method Null safety

void warn(
  1. String? correlationId,
  2. String message,
  3. [List? args]
)

Logs a warning that may or may not have a negative impact.

  • correlationId (optional) transaction id to trace execution through call chain.
  • message a human-readable message to log.
  • args arguments to parameterize the message.