stackTrace property

StackTrace? get stackTrace

Returns the stack trace if present, otherwise null.

Implementation

StackTrace? get stackTrace => switch (this) {
  AsyncError<T>(:final stack) => stack,
  _ => null,
};