StackTraceImpl.fromStackTrace constructor

StackTraceImpl.fromStackTrace(
  1. StackTrace _stackTrace, {
  2. String? workingDirectory,
  3. int skipFrames = 0,
})

Implementation

StackTraceImpl.fromStackTrace(
  this._stackTrace, {
  String? workingDirectory,
  int skipFrames = 0,
})  : _skipFrames = skipFrames,
      _workingDirectory = workingDirectory {
  if (_stackTrace is StackTraceImpl) {
    _frames = (_stackTrace as StackTraceImpl).frames;
  }
}