Trace constructor

Trace(Iterable<Frame> frames, { String original })

Returns a new Trace comprised of frames.

Implementation

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