NativeCrashReport class

A fatal native (or JVM / NSException) crash persisted from a previous run.

Constructors

NativeCrashReport({required String kind, required Map<String, dynamic> raw, String? signal, int? signalNumber, int? code, String? faultAddress, int? pid, int? tid, String? platform, String? arch, int? timestampMs, String? stackTrace, String? exceptionType, String? exceptionMessage, String? threadName})
Creates a report. Prefer NativeCrashReport.fromMap when parsing plugin JSON.
const
NativeCrashReport.fromMap(Map<String, dynamic> map)
Parses a map produced by the native plugin (or toJson).
factory

Properties

arch → String?
ABI / architecture string when known.
final
code → int?
Signal code (si_code).
final
exceptionMessage → String?
Exception message or reason.
final
exceptionType → String?
Java class name or NSException name when kind is not signal.
final
faultAddress → String?
Faulting address as a hex string (si_addr).
final
hashCode → int
The hash code for this object.
no setterinherited
kind → String
Discriminator: signal, java, or nsException.
final
pid → int?
Process id at crash time.
final
platform → String?
android or ios.
final
raw → Map<String, dynamic>
Original payload from native code, suitable to POST as JSON.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signal → String?
POSIX signal name when kind is signal, for example SIGSEGV.
final
signalNumber → int?
POSIX signal number (si_signo).
final
stackTrace → String?
Best-effort native or JVM / Objective-C stack text.
final
threadName → String?
JVM thread name for java crashes.
final
tid → int?
Thread id at crash time.
final
timestamp → DateTime?
timestampMs as a UTC DateTime, if present.
no setter
timestampMs → int?
Crash time in milliseconds since epoch, UTC.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a copy of raw for HTTP or logging.
toString() → String
A string representation of this object.
override

Operators

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