PulseCrashReporter class abstract

Abstract bridge to a crash reporting backend (e.g. Firebase Crashlytics, Sentry, or a custom logger).

PulseOps depends only on this interface so the package itself never pulls in firebase_crashlytics as a hard dependency. Apps wire up their own implementation — see FirebaseCrashReporterAdapter in the README.

Implementers

Constructors

PulseCrashReporter()

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

attachBreadcrumbs(List<Breadcrumb> breadcrumbs) Future<void>
Pushed before a crash is recorded so the breadcrumbs accompany the crash payload. Implementations may translate these into "logs" or "custom keys" on their backend.
attachNetworkHistory(List<NetworkRecord> records) Future<void>
Pushed alongside fatal/non-fatal calls so the most recent API timeline is preserved for triage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordFatal(Object error, {StackTrace? stackTrace, Map<String, dynamic>? context}) Future<void>
Forwarded for uncaught fatal errors. The implementation is responsible for marking the record fatal in whatever backend is in use.
recordNonFatal(Object error, {StackTrace? stackTrace, String? reason, Map<String, dynamic>? context}) Future<void>
Forwarded by the Dio interceptor when an HTTP request fails. Defaults to a non-fatal record so the app keeps running.
setCustomKey(String key, Object value) Future<void>
Sets a top-level custom key in the crash backend.
toString() String
A string representation of this object.
inherited

Operators

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