getOfflineMessage method
Implementation
Future<void> getOfflineMessage(String id) async {
// individualConversationMessages.clear();
final oldConvo = await _storageService.getString(id);
if (oldConvo != null) {
final oldConvoJson = jsonDecode(oldConvo);
final oldConvoModel = ConversationModel.fromJson(oldConvoJson);
individualConversationMessages.value = oldConvoModel.data!.messages ?? [];
// individualConversationMessages.refresh();
update();
await scrollController.animateTo(
scrollController.position.maxScrollExtent,
duration: const Duration(milliseconds: 300),
curve: Curves.easeOut);
update();
// update();
} else {
//log('oldConvo is null');
}
// update();
}