Stack class Null safety

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

See getStack.

Inheritance

Constructors

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

Properties

asyncCausalFrames List<Frame>?
A list of frames representing the asynchronous path. Comparable to awaiterFrames, if provided, although some frames may be different.
@optional, read / write
awaiterFrames List<Frame>?
A list of frames representing the asynchronous path. Comparable to asyncCausalFrames, if provided, although some frames may be different.
@optional, read / write
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).
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
json Map<String, dynamic>?
read / write, inherited
messages List<Message>?
A list of messages in the isolate's message queue.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
truncated bool?
Specifies whether or not this stack is complete or has been artificially truncated.
read / write
type String
read-only, override

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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