traceOf static method

List<D4rtStackFrame> traceOf(
  1. Object? error
)

The interpreted frames error left, innermost first — empty when it left none (raised outside any interpreted call, or a value no trace can be attached to).

Implementation

static List<D4rtStackFrame> traceOf(Object? error) {
  if (error == null || error is String || error is num || error is bool) {
    return const [];
  }
  return _traces[error] ?? const [];
}