clear method

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

Implementation

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