error static method

dynamic error(
  1. dynamic message, {
  2. bool alwaysPrint = false,
})

Logs an error message to the console. It will only print if your app's environment is in debug mode. You can override this by setting alwaysPrint = true.

Implementation

static error(dynamic message, {bool alwaysPrint = false}) {
  if (message is Exception) {
    _loggerPrint(message.toString(), 'error', alwaysPrint);
    return;
  }
  _loggerPrint(message, 'error', alwaysPrint);
}