Skip to content

Instantly share code, notes, and snippets.

@DiegoCarvalho75
Last active August 6, 2019 22:57
Show Gist options
  • Save DiegoCarvalho75/fbc7fd77a4601352b323b0b64ca705a2 to your computer and use it in GitHub Desktop.
Save DiegoCarvalho75/fbc7fd77a4601352b323b0b64ca705a2 to your computer and use it in GitHub Desktop.
Dart Pad
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