CrashQueue class

Manages in-memory queueing, offline disk buffering, and exponential backoff retry for crash telemetry.

Constructors

CrashQueue({required CrashOffline crashOffline, bool offlineBuffer = true})
Creates a CrashQueue with the specified crashOffline handler.

Properties

crashOffline → CrashOffline
Local offline storage use case for saving crashes when disconnected or rate-limited.
final
hashCode → int
The hash code for this object.
no setterinherited
isProcessing → bool
no setter
isTelemetryPaused → bool
no setter
isUnauthorized → bool
no setter
length → int
Current number of crash incidents queued in memory.
no setter
offlineBuffer → bool
Whether offline caching to disk is enabled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Crash crash) → Future<void>
Adds a crash to the transmission queue or buffers it offline if paused/offline.
dispose() → void
Disposes active retry timers and clears the in-memory queue.
flushOfflineInBatches(Future<void> sendBatch(List<Crash> batch)) → Future<void>
Flushes locally buffered offline crashes in chunks up to batchSize using sendBatch.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process(Future<void> sendCrash(Crash crash)) → Future<void>
Processes queued crashes, transmitting them over HTTP using the provided sendCrash callback.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

batchSize → const int
Maximum batch size when syncing offline buffered crashes to the server.