ChatHistoryService class

Constructors

ChatHistoryService()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clearChatHistory() Future<void>
Clears all saved chat messages from SharedPreferences.
loadMessages() Future<List<String>>
Loads the list of saved chat messages from SharedPreferences.
saveMessage(String message) Future<void>
Saves a single chat message to SharedPreferences.