Is there a way to check if ListView is empty.
ListView.builder(
itemCount: _items.length,
itemBuilder: (context, index) {
return _buildFilteredItem(context, index);
},
)
I want to search through my items and if its empty show a Text widget saying no items found. _buildFilteredItem returns null if the item could not be found.