DVKeyValueCrashStore class

Crash records in a DVCrashKeyValue, for a target with no file system.

Every key is under prefix, so the store shares a browser's storage with the rest of the application without reading its keys as records. The per-release count is persisted beside the records for the reason the file store persists it: a crash loop on the web is a reload loop.

Implemented types

Constructors

DVKeyValueCrashStore(DVCrashKeyValue storage, {String prefix = 'dartvel.crash.'})

Properties

hashCode → int
The hash code for this object.
no setterinherited
prefix → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage → DVCrashKeyValue
final

Methods

countCrash(String release) → int
Counts one more crash on this device for release and returns the count. Persisted with the records, because a crash loop is a sequence of restarts, and a limit that restarts with them limits nothing.
override
isSent(String id) → bool
override
markSent(String id) → void
Notes that id reached the sink, before the record is removed. A process that dies between the two finds the note at the next launch and removes the record without sending it again.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pending() → List<DVCrashStoreEntry>
Every record left by earlier runs, oldest first.
override
remove(String id) → void
Removes the record and its sent note.
override
toString() → String
A string representation of this object.
inherited
writeSync(DVCrashReport report) → void
Writes report before returning.
override

Operators

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