Flutter: Filter list as per some condition
toList()
is missing to materializer the result
_AnimatedMovies = AllMovies.where((i) => i.isAnimated).toList();
The Solution is here
Just try with this Function getCategoryList(),
Here the condition will be catogory_id == '1' from the list
List<dynamic> getCategoryList(List<dynamic> inputlist) {
List outputList = inputlist.where((o) => o['category_id'] == '1').toList();
return outputList;
}