terse property

Trace terse

Returns a terser version of this trace.

This is accomplished by folding together multiple stack frames from the core library or from this package, as in foldFrames. Remaining core library frames have their libraries, "-patch" suffixes, and line numbers removed. If the outermost frame of the stack trace is a core library frame, it's removed entirely.

This won't do anything with a raw JavaScript trace, since there's no way to determine which frames come from which Dart libraries. However, the https://pub.dev/packages/source_map_stack_trace package can be used to convert JavaScript traces into Dart-style traces.

For custom folding, see foldFrames.


Trace get terse => foldFrames((_) => false, terse: true);