É algo bobinho mas até que gostei, no projeto dos alunos e as notas eu me quebrei e não consegui fazer me fazendo ficar um pouco desanimado, mas irei aproveitar e estudar este modulo de Collections para entender melhor.
void main() {
List<String> listaTarefas = ["Estudar", "Comprar maintimentos"];
cabecalho();
exibindoTarefas(listaTarefas);
}
//Crie uma função que receba a lista de tarefas e exiba todas as tarefas.
void exibindoTarefas(List<String> listaTarefas) {
for (var tarefa in listaTarefas) {
print(tarefa);
}
}
void cabecalho() {
print(
" ______ ______ ______ ______ ______ ______ ______ ",
);
print(
"/\\__ _\\ /\\ __ \\ /\\ == \\ /\\ ___\\ /\\ ___\\ /\\ __ \\ /\\ ___\\ ",
);
print(
"\\/_/\\ \\/ \\ \\ __ \\ \\ \\ __< \\ \\ __\\ \\ \\ __\\ \\ \\ __ \\ \\ \\___ \\ ",
);
print(
" \\ \\_\\ \\ \\_\\ \\_\\ \\ \\_\\ \\_\\ \\ \\_____\\ \\ \\_\\ \\ \\_\\ \\_\\ \\/\\_____\\ ",
);
print(
" \\/_/ \\/_/\\/_/ \\/_/ /_/ \\/_____/ \\/_/ \\/_/\\/_/ \\/_____/ ",
);
print(
" ",
);
}