recordError function
打印3
Implementation
void recordError(Object message, StackTrace? stack) {
DateTime now = DateTime.now();
final frameStr = stack.toString().split("\n");
try {
Frame frame = Frame.parseVM(frameStr.elementAt(kDebugMode ? 1 : 0));
WLog.e(message.toString(), now: now, frame: frame);
} catch (e) {
Frame frame = Trace.current().frames[1];
WLog.e(message.toString(), now: now, frame: frame);
}
}