consoleError static method

void consoleError(
  1. Object? object
)

Prints a string representation of the provided object to the console as an error.

Implementation

static void consoleError(Object? object) {
  // ignore: avoid_print
  print('\x1B[31m$object\x1B[0m');
}