printWarning function

void printWarning(
  1. String tag,
  2. String message, [
  3. String icon = '⚡'
])

Prints a warning message in yellow, used for non-critical issues that may require attention.

  • tag: The tag categorizing the warning (e.g., "DEPRECATED").
  • message: The warning message to display.

Implementation

void printWarning(String tag, String message, [String icon = '⚡']) {
  printDebug(
      '${ForeColor.yellow}${"[$icon${BackColor.yellow}${ForeColor.black}${_formatInBrackets('WARNING', 16, false)}$reset${ForeColor.yellow}]${_formatInBrackets(tag)}: $message"}$reset');
}