Trace class

A stack trace, comprised of a list of stack frames.

Implemented types

Constructors

Trace(Iterable<Frame> frames, { String original })
Returns a new Trace comprised of frames.
Trace.current([int level = 0 ])
Returns the current stack trace. [...]
factory
Trace.from(StackTrace trace)
Returns a new stack trace containing the same data as trace. [...]
factory
Trace.parse(String trace)
Parses a string representation of a stack trace. [...]
factory
Trace.parseFirefox(String trace)
Parses a string representation of a Firefox stack trace.
Trace.parseFriendly(String trace)
Parses this package's string representation of a stack trace. [...]
Trace.parseIE(String trace)
Parses a string representation of an Internet Explorer stack trace. [...]
Trace.parseJSCore(String trace)
Parses a string representation of a JavaScriptCore stack trace.
Trace.parseSafari(String trace)
Parses a string representation of a Safari stack trace.
Trace.parseSafari6_0(String trace)
Parses a string representation of a Safari 6.0 stack trace.
Trace.parseSafari6_1(String trace)
Parses a string representation of a Safari 6.1+ stack trace.
Trace.parseV8(String trace)
Parses a string representation of a Chrome/V8 stack trace.
Trace.parseVM(String trace)
Parses a string representation of a Dart VM stack trace.

Properties

frames List<Frame>
The stack frames that comprise this stack trace.
final
original StackTrace
The original stack trace from which this trace was parsed.
final
terse Trace
Returns a terser version of this. [...]
read-only
vmTrace StackTrace
Returns a VM-style StackTrace object. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

foldFrames(bool predicate(Frame frame), { bool terse: false }) Trace
Returns a new Trace based on this where multiple stack frames matching predicate are folded together. [...]
toString() String
Returns a human-readable string representation of this.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

format(StackTrace stackTrace, { bool terse: true }) String
Returns a human-readable representation of stackTrace. If terse is set, this folds together multiple stack frames from the Dart core libraries, so that only the core library method directly called from user code is visible (see Trace.terse).