Trace class Null safety

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
hashCode int
The hash code for this object.
read-onlyinherited
original StackTrace
The original stack trace from which this trace was parsed.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
terse Trace
Returns a terser version of this.
read-only
vmTrace StackTrace
Returns a VM-style StackTrace object.
read-only

Methods

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

Operators

operator ==(Object 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).