clear method

Future<void> clear({
  1. bool clearChatwootUserStorage = true,
})

Implementation

Future<void> clear({bool clearChatwootUserStorage = true}) async {
  await conversationDao.deleteConversation();
  await messagesDao.clear();
  if (clearChatwootUserStorage) {
    await userDao.deleteUser();
    await contactDao.deleteContact();
  }
}