warn function
dynamic
warn(})
Create a warning message
if the condition
is false.
Implementation
warn(
bool condition,
String message, {
int backgroundColor = 229,
int foregroundColor = 0,
}) {
if (condition) return;
debugPrint('${_bg(backgroundColor)}${_fg(foregroundColor)}[Warn] $message');
}