Last active
August 6, 2019 22:57
-
-
Save DiegoCarvalho75/fbc7fd77a4601352b323b0b64ca705a2 to your computer and use it in GitHub Desktop.
Dart Pad
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() { | |
var questoes = [ | |
{ | |
'Pergunta': ['Qual cor?'], | |
'Respostas': ['Verde', 'Vermelho', 'Preto'] | |
}, | |
{ | |
'Pergunta': ['Qual animal?'], | |
'Respostas': ['Cavalo', 'Cobra'] | |
}, | |
]; | |
for (int i=0; i<questoes.length; i++ ) | |
{ | |
(questoes[i]['Pergunta'] as List<dynamic>).map((pergunta) { | |
print(pergunta); | |
}).toList(); | |
for (int y = 0; y<questoes[i]['Respostas'].length; y++) | |
{ | |
print(questoes[i]['Respostas'][y]); | |
} | |
print('\r'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment