error static method
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);
}