StackTraceImpl class Null safety
- 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> ? -
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- lineNo → int
-
Returns the filename for the current stackframe
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- sourceFile → File
-
Returns a File instance for the current stackframe
read-only
- sourceFilename → String
-
Returns the Filename for the current stackframe
read-only
- sourcePath → String
-
returns the full path for the current stackframe file
read-only
Methods
-
formatStackTrace(
{bool showPath = false, int methodCount = 10, int skipFrames = 0}) → String? -
Outputs a formatted string of the current stack_trace_nj
showing upto
methodCount
methods in the trace.methodCount
defaults to 10. -
merge(
StackTrace microTask) → StackTraceImpl -
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