Filter list item with choice chips, but show 'all items' if 'All' choice chip is selected

I have choice chips set as

All
Food & Drink
Technology

currently i have it getting the list of items from firebase. I've managed to get it so if a user clicks on 'Food & Drink' or 'Technology' it filters the list items where firebase field 'category' is equal to 'Food & Drink'

at the moment, the default selected chip is All, but it returns an empty list. How can i get it to show all the items from the collection?

1
3 replies