customize method

  1. @override
CustomStackTrace customize(
  1. StackTrace stackTrace, [
  2. int skip = 0
])
override

Parse StackTrace and convert to CustomStackTrace.

Implementation

@override
CustomStackTrace customize(StackTrace stackTrace, [int skip = 0]) {
  assert(skip >= 0);

  if (stackTrace is CustomStackTrace) {
    return stackTrace;
  }
  return CustomStackTrace(stackTrace, skip);
}