Flutter: Filter list as per some condition [closed]

toList() is missing to materializer the result

_AnimatedMovies = AllMovies.where((i) => i.isAnimated).toList();

Leave a Comment