Trace constructor Null safety

Trace(
  1. Iterable<Frame> frames,
  2. {String? original}
)

Returns a new Trace comprised of frames.

Implementation

Trace(Iterable<Frame> frames, {String? original})
    : frames = List<Frame>.unmodifiable(frames),
      original = StackTrace.fromString(original ?? '');