stackTrace property

  1. @override
StackTrace? get stackTrace
override

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;