StackTraceFormatter class Null safety

A class that tracks how to format a stack trace according to the user's configuration.

This can convert JavaScript stack traces to Dart using source maps, and fold irrelevant frames out of the stack trace.

Constructors

StackTraceFormatter()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

asCurrent<T>(T body()) → T
Runs body with this as StackTraceFormatter.current.
configure({StackTraceMapper? mapper, Set<String>? except, Set<String>? only}) → void
Configure how stack traces are formatted.
formatStackTrace(StackTrace stackTrace, {bool? verbose}) Chain
Converts stackTrace to a Chain and formats it according to the user's preferences.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

current StackTraceFormatter?
Returns the current manager, or null if this isn't called within a call to asCurrent.
read-only