stackTraceOrNull property

StackTrace? get stackTraceOrNull

The stack trace, or null if not in error state.

Implementation

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