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
21 stars 15 forks source link

Adding interceptor do ClientOptions #148

Open toshiossada opened 1 month ago

toshiossada commented 1 month 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 1 week ago

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