e function

void e(
  1. String message, [
  2. Object? error,
  3. StackTrace? stackTrace
])

error log error the error object stackTrace the stack trace of the error

Implementation

void e(String message, [Object? error, StackTrace? stackTrace]) {
  var messageWithStack = message;
  if (error != null) {
    messageWithStack += ' ($error)';
  }
  if (stackTrace != null) {
    messageWithStack += ':\n$stackTrace';
  }
  _print(messageWithStack, _LogLevel.error);
}