localStorageProvider top-level property
Provides an instance of local storage
Implementation
final localStorageProvider =
Provider.family<LocalStorage, DOOParameters>((ref, params) {
final contactDao = ref.read(dooContactDaoProvider(params));
final conversationDao = ref.read(dooConversationDaoProvider(params));
final userDao = ref.read(dooUserDaoProvider(params));
final messagesDao = ref.read(dooMessagesDaoProvider(params));
return LocalStorage(
contactDao: contactDao,
conversationDao: conversationDao,
userDao: userDao,
messagesDao: messagesDao);
});