algolia / algoliasearch-helper-flutter

⚡️ Building block to create instant-search applications with Flutter
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/flutter/
Other
23 stars 15 forks source link

Adding interceptor do ClientOptions #148

Open toshiossada opened 2 months ago

toshiossada commented 2 months ago

When I create a HitsSearcher() I would to be ennabled to give interceptors to custumize my interceptors.

      HitsSearcher(
        applicationID: Constants.applicationId,
        apiKey: Constants.apiKey,
        indexName: Constants.indexName,
        options: const ClientOptions(
          connectTimeout: Duration(seconds: 40),
          interceptors: [MyInterceptor()]
        ),
      ),

This way I could to do my own Cache system

toshiossada commented 2 months ago

I made this change in https://github.com/algolia/algoliasearch-helper-flutter/pull/149