thrownStackTrace property

StackTrace? thrownStackTrace
getter/setter pair

The stack trace recorded when this instance was first thrown, for an instance whose bridged super-object is an Error (SCF39).

Dart sets Error.stackTrace on the first throw. The native super-object is never thrown — the interpreter throws this instance — and its stackTrace cannot be assigned, so the record lives here and the stackTrace read answers it when the native one is null.

Implementation

StackTrace? thrownStackTrace;