ObslyStorage class

Storage defensivo para eventos de Obsly con múltiples fallbacks

Properties

hashCode int
The hash code for this object.
no setterinherited
onStorageEvent Stream<StorageEvent>
Stream of storage events for real-time updates
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearAll() Future<void>
Elimina todos los eventos almacenados
clearAllEvents() Future<void>
Limpia todos los eventos
clearEventsByKeys(List<String> keys) Future<void>
Limpia eventos específicos por claves
clearEventsBySession(String sessionId) Future<void>
Limpia eventos de una sesión específica
deleteEventsByMap(List<Map<String, dynamic>> events) Future<void>
Limpia eventos específicos por sus maps
dispose() Future<void>
Libera recursos
flush() Future<void>
Flush all data to persistent storage (IndexedDB)
getAllEvents() Future<List<Map<String, dynamic>>>
Obtiene todos los eventos almacenados
getAllInternalStateKeys() Future<List<String>>
Get all internal state keys
getEventCount() Future<int>
Obtiene el número de eventos almacenados
getInternalState<T>(String key) Future<T?>
Obtiene estado interno
getStorageStats() Future<Map<String, dynamic>>
Obtiene estadísticas del storage
initialize() Future<void>
Inicializa el storage con técnicas defensivas
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeInternalState(String key) Future<void>
Remove internal state by key
resetInstanceForTesting() → void
Reset instance for testing (without closing boxes)
storeEvent(Map<String, dynamic> event) Future<void>
Almacena un evento con técnicas defensivas
storeInternalState(String key, dynamic value) Future<void>
Almacena estado interno
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ObslyStorage
no setter

Static Methods

resetSingletonForTesting() → void
Reset singleton instance for testing