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.runtimeType.toString() == 'Exception') {
    _loggerPrint(message.toString(), 'error', alwaysPrint);
  }
  _loggerPrint(message, 'error', alwaysPrint);
}