ZenithStorage class abstract

Abstract storage interface for state persistence in flutter_zenith.

Implement this interface to connect PersistedNode to key-value backends such as SharedPreferences, flutter_secure_storage, Hive, or SQLite.

Use InMemoryStorage for unit tests, ephemeral caches, or mock environments.

Implementers

Constructors

ZenithStorage()

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

clear() → Future<void>
Clears all stored key-value pairs.
delete(String key) → Future<void>
Deletes the entry at key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → String?
Reads the string value associated with key synchronously.
toString() → String
A string representation of this object.
inherited
write(String key, String value) → Future<void>
Writes value to key in storage.

Operators

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