Stack class

The Stack class represents the various components of a Dart stack trace for a given isolate.

See VmService.getStack.

Inheritance

Constructors

Stack({List<Frame>? frames, List<Message>? messages, bool? truncated, List<Frame>? asyncCausalFrames, List<Frame>? awaiterFrames})

Properties

asyncCausalFrames List<Frame>?
A list of frames which contains both synchronous part and the asynchronous continuation e.g. async functions awaiting completion of the currently running async function. Asynchronous frames are separated from each other and synchronous prefix via frames of kind FrameKind.kAsyncSuspensionMarker.
getter/setter pair
awaiterFrames List<Frame>?
Deprecated since version 4.7 of the protocol. Will be always absent in the response.
getter/setter pair
frames List<Frame>?
A list of frames that make up the synchronous stack, rooted at the message loop (i.e., the frames since the last asynchronous gap or the isolate's entrypoint).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>?
getter/setter pairinherited
messages List<Message>?
A list of messages in the isolate's message queue.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
truncated bool?
Specifies whether or not this stack is complete or has been artificially truncated.
getter/setter pair
type String
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Map<String, dynamic>? json) Stack?
override