printWarning function

void printWarning(
  1. Object? object, [
  2. RichStyle? style
])

Prints object as a warning

Implementation

void printWarning(Object? object, [RichStyle? style]) {
  printRich(object, foreground: Colors.yellow, style: style);
}