printError function

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

Prints object as an error

Implementation

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