DartStackTraceParser class

Parses a Dart stack trace into frames the native SDKs understand.

Only this class knows the Dart stack trace format. A crash of another runtime reaches the same native crash reporting through its own parser.

Two formats are understood:

  • source frames, "#0 main (package:app/main.dart:10:5)", of debug builds and builds that are not obfuscated.
  • machine frames, "#00 abs 7045c58f8f virt 334f8f _kDartIsolateSnapshotInstructions+0x16e08f", of release builds compiled with --split-debug-info. They are sent the way a native crash is, as addresses and binary images, and resolved to names on the backend.

Constructors

DartStackTraceParser()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String? stackTrace) → ParsedStackTrace
Parses stackTrace into frames.
toString() → String
A string representation of this object.
inherited

Operators

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