chatwootClientApiInterceptorProvider top-level property

ProviderFamily<ChatwootClientApiInterceptor, ChatwootParameters> chatwootClientApiInterceptorProvider
final

Provides an instance of ChatwootClientApiInterceptor

Implementation

final chatwootClientApiInterceptorProvider =
    Provider.family<ChatwootClientApiInterceptor, ChatwootParameters>(
        (ref, params) {
  final localStorage = ref.read(localStorageProvider(params));
  final authService = ref.read(chatwootClientAuthServiceProvider(params));
  return ChatwootClientApiInterceptor(
      params.inboxIdentifier, localStorage, authService);
});