ruutClientApiInterceptorProvider top-level property

ProviderFamily<RuutChatClientApiInterceptor, RuutParameters> ruutClientApiInterceptorProvider
final

Provides an instance of RuutChatClientApiInterceptor

Implementation

final ruutClientApiInterceptorProvider =
    Provider.family<RuutChatClientApiInterceptor, RuutParameters>(
        (ref, params) {
  final localStorage = ref.read(localStorageProvider(params));
  final authService = ref.read(ruutClientAuthServiceProvider(params));
  return RuutChatClientApiInterceptor(
      params.inboxIdentifier, localStorage, authService);
});