I'm having a list of movies. That contains all animated and non-animated movies. To identify whether it's Animated or not there is one flag called isAnimated
.
I want to show only Animated movies. How can I do that?
toList()
is missing to materializer the result
_AnimatedMovies = AllMovies.where((i) => i.isAnimated).toList();