dooRepositoryProvider top-level property

ProviderFamily<DOORepository, RepositoryParameters> dooRepositoryProvider
final

Provides an instance of DOO repository

Implementation

final dooRepositoryProvider =
    Provider.family<DOORepository, RepositoryParameters>((ref, repoParams) {
  final localStorage = ref.read(localStorageProvider(repoParams.params));
  final clientService = ref.read(dooClientServiceProvider(repoParams.params));

  return DOORepositoryImpl(
      clientService: clientService,
      localStorage: localStorage,
      streamCallbacks: repoParams.callbacks);
});