Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement