ruutRepositoryProvider top-level property
Provides an instance of ruut repository
Implementation
final ruutRepositoryProvider =
Provider.family<RuutRepository, RepositoryParameters>((ref, repoParams) {
final localStorage = ref.read(localStorageProvider(repoParams.params));
final clientService =
ref.read(ruutClientServiceProvider(repoParams.params));
return RuutRepositoryImpl(
clientService: clientService,
localStorage: localStorage,
streamCallbacks: repoParams.callbacks);
});