Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void main() {
  2.  
  3. var questoes = [
  4. {
  5. 'Pergunta': ['Qual cor?'],
  6. 'Respostas': ['Verde', 'Vermelho', 'Preto']
  7. },
  8. {
  9. 'Pergunta': ['Qual animal?'],
  10. 'Respostas': ['Cavalo', 'Cobra']
  11. },
  12. ];
  13.  
  14. for (int i=0; i<questoes.length; i++ )
  15. {
  16. (questoes[i]['Pergunta'] as List<dynamic>).map((pergunta) {
  17. print(pergunta);
  18. }).toList();
  19. for (int y = 0; y<questoes[i]['Respostas'].length; y++)
  20. {
  21. print(questoes[i]['Respostas'][y]);
  22. }
  23. print('\r');
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement