e function
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);
}