error static method

void error({
  1. String tag = "",
  2. String message = "",
})

Logs an error message.

If in debug mode, prints the message in red color.

tag (optional) Tag to identify the source of the log message.

message The error message to be logged.

Implementation

static void error({String tag = "", String message = ""}) {
  _log('$tag ERROR', message, ConsoleStatus.error);
}