EventsTracker class

Inheritance
Implemented types

Constructors

EventsTracker({required IStore storage, required String context, required String version, required List<String> fromJson(dynamic)})

Properties

context String
finalinherited
data Map<String, List<String>>
Stores map of key to pairing info
getter/setter pairinherited
fromJson List<String> Function(dynamic)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
onCreate → Event<StoreCreateEvent<List<String>>>
Emitted when a new key is added to the store. The event contains the key and the value of type T.
finalinherited
onDelete → Event<StoreDeleteEvent<List<String>>>
Emitted when a key is deleted from the store. The event contains the key and the value of type T.
finalinherited
onError → Event<StoreErrorEvent<List<String>>>
Emitted when a key is deleted from the store because of an error The event contains the key and the error description.
finalinherited
onSync → Event<StoreSyncEvent>
Emitted when the store is persisted to storage. This event can be used as a catchall for any creations, updates, or deletions.
finalinherited
onUpdate → Event<StoreUpdateEvent<List<String>>>
Emitted when a key is updated in some way: overwritten, some piece changes, etc. The event contains the key and the value of type T.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage IStore
finalinherited
storageKey String
no setterinherited
version String
finalinherited

Methods

checkInitialized() → void
inherited
clearAll() Future<bool>
override
clearEvents(List<String> events) Future<bool>
override
delete(String key) Future<void>
inherited
get(String key) List<String>?
inherited
getAll() List<List<String>>
inherited
getStoredEvents() List<String>
override
has(String key) bool
inherited
init() Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persist() Future<void>
inherited
restore() Future<void>
inherited
set(String key, List<String> value) Future<void>
inherited
storeEvent(String encodedEvent) Future<bool>
override
toString() String
A string representation of this object.
inherited

Operators

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