stackTrace property
Captured stack trace — either passed into the constructor (e.g.
threaded through wrap(..., stackTrace: st) at a catch site)
or, failing that, the trace the VM attached when this error was
thrown. null only if the error was never thrown and no trace
was supplied.
Implementation
@override
StackTrace? get stackTrace => _stackTrace ?? super.stackTrace;