I\'m having list of Movies. That contains all Animated & non Animated Movies. To identify whether its Animated or not there is one flag called as isAnimated
where function on a List returns Iterable. You have to convert it to List using the function List.from(Iterable).
So in the above scenario you should use the following code snippet.
Iterable _AnimatedMoviesIterable = AllMovies.where((i) => i.isAnimated);
_AnimatedMovies = List.from(_AnimatedMoviesIterable);