stackTraceOrNull property

StackTrace? get stackTraceOrNull

Returns the stack trace if the status is LxError, otherwise null.

Implementation

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