StackTraceNJ class

Implemented types

Constructors

StackTraceNJ({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.

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
stackTrace StackTrace
final
workingDirectory String?
final

Methods

formatStackTrace({bool showPath = false, int methodCount = 10}) String?
Outputs a formatted string of the current stack_trace_nj showing upto methodCount methods in the trace. methodCount defaults to 10.
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

Static Properties

stackTraceRegex RegExp
final