ruutClientServiceProvider top-level property

ProviderFamily<RuutClientService, RuutParameters> ruutClientServiceProvider
final

Provides instance of ruut client api service RuutClientService.

Implementation

final ruutClientServiceProvider =
    Provider.family<RuutClientService, RuutParameters>((ref, params) {
  final authenticatedDio = ref.read(authenticatedDioProvider(params));
  return RuutClientServiceImpl(params.baseUrl, dio: authenticatedDio);
});