Created
March 11, 2021 19:40
-
-
Save manoellribeiro/74a185c79eed733ae7f62e9f79d87f68 to your computer and use it in GitHub Desktop.
Código inicial para o exercício de filtragem de lista.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
} | |
enum MovieStatus { | |
recentlyReleased, | |
completed, | |
inProgress, | |
waitingForRelease, | |
} | |
class MovieInfo { | |
final int id; | |
final String name; | |
final MovieStatus status; | |
MovieInfo({ | |
required this.id, | |
required this.name, | |
required this.status, | |
}); | |
} | |
final moviesList = [ | |
MovieInfo( | |
id: 0, | |
name: "Mulan", | |
status: MovieStatus.completed, | |
), | |
MovieInfo( | |
id: 0, | |
name: "Parasita", | |
status: MovieStatus.completed, | |
), | |
MovieInfo( | |
id: 0, | |
name: "Wheathering with you", | |
status: MovieStatus.completed, | |
), | |
MovieInfo( | |
id: 0, | |
name: "Soul", | |
status: MovieStatus.recentlyReleased, | |
), | |
MovieInfo( | |
id: 0, | |
name: "Raya e o último dragão", | |
status: MovieStatus.waitingForRelease, | |
), | |
MovieInfo( | |
id: 0, | |
name: "Justice League - Snyder Cut", | |
status: MovieStatus.waitingForRelease, | |
), | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment