localStorageProvider top-level property

ProviderFamily<LocalStorage, ChatwootParameters> localStorageProvider
final

Provides an instance of local storage

Implementation

final localStorageProvider =
    Provider.family<LocalStorage, ChatwootParameters>((ref, params) {
  final contactDao = ref.read(chatwootContactDaoProvider(params));
  final conversationDao = ref.read(chatwootConversationDaoProvider(params));
  final userDao = ref.read(chatwootUserDaoProvider(params));
  final messagesDao = ref.read(chatwootMessagesDaoProvider(params));

  return LocalStorage(
      contactDao: contactDao,
      conversationDao: conversationDao,
      userDao: userDao,
      messagesDao: messagesDao);
});