Skip to content

Instantly share code, notes, and snippets.

@manoellribeiro
Created March 11, 2021 19:40
Show Gist options
  • Save manoellribeiro/74a185c79eed733ae7f62e9f79d87f68 to your computer and use it in GitHub Desktop.
Save manoellribeiro/74a185c79eed733ae7f62e9f79d87f68 to your computer and use it in GitHub Desktop.
Código inicial para o exercício de filtragem de lista.
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