StackTraceFormatter class final
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
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent 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.no setter