StorageProvider class abstract

An abstract interface for storing and retrieving conversations.

This provides the foundation for the Persistence & Memory layer. Implementations could use Hive, SQLite, SharedPreferences, or cloud databases.

Constructors

StorageProvider()

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

deleteConversation(String id) Future<void>
Deletes a conversation by its unique ID.
dispose() Future<void>
Closes any open resources or database connections.
loadAllConversations() Future<List<Conversation>>
Loads all available conversations. Returns an empty list if none exist.
loadConversation(String id) Future<Conversation?>
Loads a conversation by its unique ID. Returns null if not found.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveConversation(Conversation conversation) Future<void>
Saves a conversation to storage.
toString() String
A string representation of this object.
inherited

Operators

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