StackTraceImpl class

Provides dart stack frame handling.

Implemented types

Constructors

StackTraceImpl({int skipFrames = 0, String? workingDirectory})
You can suppress call frames from showing by specifing a non-zero value for skipFrames If the workingDirectory is provided we will output a full file path to the dart library.
StackTraceImpl.fromStackTrace(StackTrace _stackTrace, {String? workingDirectory, int skipFrames = 0})

Properties

frames List<Stackframe>
no setter
hashCode int
The hash code for this object.
no setterinherited
lineNo int
Returns the filename for the current stackframe
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceFile File
Returns a File instance for the current stackframe
no setter
sourceFilename String
Returns the Filename for the current stackframe
no setter
sourcePath String
returns the full path for the current stackframe file
no setter

Methods

formatStackTrace({bool showPath = false, int methodCount = 10, int skipFrames = 0}) String?
Outputs a formatted string of the current StackTraceImpl showing upto methodCount methods in the trace. methodCount defaults to 10.
merge(StackTrace microTask) StackTraceImpl
merges two stack traces. Used when handling futures and you want combine a futures stack exception with the original calls stack
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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