warning method
Warning Messages Guidelines
Use if the CLI can continue to run but the user should still be warned that something went wrong or is not as expected. Ensure to always provide actionable guidance on how to resolve the issue.
Format:
WARNING: <Short description>
<Actionable suggestion/hint>
Implementation
void warning(String message, {bool newParagraph = false, String? hint}) {
_logger.warning(message, newParagraph: newParagraph);
if (hint != null) {
_logger.log(hint, cli.LogLevel.warning, type: cli.TextLogType.hint);
}
}