e static method
打印错误日志(主要用于 catch 块)
error异常对象stackTrace堆栈信息(可选,如果传 null 则会自动捕获当前堆栈)
Implementation
static void e(Object error, [StackTrace? stackTrace]) {
if (!kDebugMode) return;
final stack = stackTrace ?? StackTrace.current;
final message = error.toString();
_log('ERROR', message, stackTrace: stack);
}