StackTraceImpl constructor

StackTraceImpl({
  1. int skipFrames = 0,
  2. 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.

Implementation

StackTraceImpl({int skipFrames = 0, String? workingDirectory})
    : _stackTrace = core.StackTrace.current,
      _skipFrames = skipFrames + 1, // always skip ourselves.
      _workingDirectory = workingDirectory;