fromStackTrace method Null safety

List<StackFrame> fromStackTrace(
  1. StackTrace stack
)

Parses a list of StackFrames from a StackTrace object.

This is normally useful with StackTrace.current.

Implementation

static List<StackFrame> fromStackTrace(StackTrace stack) {
  assert(stack != null);
  return fromStackString(stack.toString());
}