DVCrashReport class

A crash, as written to disk by the handler and sent by the next launch.

Constructors

DVCrashReport({required String id, required DVCrashKind kind, required String errorType, required String message, required List<DVCrashFrame> frames, required String fingerprint, required DVCrashContext context, required DateTime occurredAt, Duration? sessionLength, Map<String, Object?> flags = const <String, Object?>{}, List<DVCrashBreadcrumb> breadcrumbs = const <DVCrashBreadcrumb>[], bool? symbolicated})
const

Properties

final
context → DVCrashContext
final
errorType → String
final
fingerprint → String
final
flags → Map<String, Object?>
The flags in force when it happened.
final
frames → List<DVCrashFrame>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
kind → DVCrashKind
final
message → String
The error's text, with resolved secret values redacted.
final
occurredAt → DateTime
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionLength → Duration?
How long the session had been running, when a session was started.
final
symbolicated → bool?
Whether the release's symbols were in the symbol store when the report was sent, or null when no symbol store is configured and nobody knows. A report with false says so rather than showing a frame list that is the compiler's naming.
final

Methods

copyWith({bool? symbolicated}) → DVCrashReport
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → DVCrashReport
Reads a report, throwing FormatException on anything that is not a whole one — which is what a record cut short by the crash writing it looks like.

Constants

format → const int
The on-disk format. A record in another format is not guessed at.