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 14 forks source link

when the facetlist has not and EventTracker breaks the FaceList usage #124

Closed jairoFernandez closed 5 months ago

jairoFernandez commented 5 months ago

Describe the bug 🐛
when the facetlist has not and EventTracker breaks the FaceList usage

To Reproduce 🔍
Steps to reproduce the behavior:

Just try to instanciate the object like this:

late final _facetList = _productsSearcher.buildFacetList(
    filterState: _filterState,
    attribute: 'activity_type',
  );

After that when you try to access to _facetList.facets the validation try to use the getters, because the property was marked as late final, the code break.

Expected behavior 💭
Should be work with that param in null

Environment:

jairoFernandez commented 5 months ago

I hope this PR can be fix that one 🙏🏼 https://github.com/algolia/algoliasearch-helper-flutter/pull/123