stackTrace property
The stack trace at the point where this error was first thrown.
Classes which extend Error
will automatically have a stack
trace filled in the first time they are thrown by a throw
expression.
Implementation
StackTrace? get stackTrace {
try {
return error?.stackTrace;
} catch (e) {
return null;
}
}