CrashEntry class

One captured crash: a Flutter framework error or an unhandled async error, recorded by the Crashes tab's error hooks.

Constructors

CrashEntry({required String message, required String stackTrace, bool isFatal = false, DateTime? timestamp})
Creates a crash entry. timestamp defaults to now if not supplied.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isFatal → bool
True when the error was caught by PlatformDispatcher.onError (i.e. an unhandled async error that would normally terminate the isolate).
final
message → String
The exception's string representation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → String
The captured stack trace, as text.
final
timestamp → DateTime
When the error was captured. Defaults to DateTime.now if omitted.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this entry for export (e.g. copy-as-JSON in the Crashes tab).
toString() → String
A string representation of this object.
inherited

Operators

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