skip to Main Content

Add multiple list inside list – dart – Flutter

I have this code var sections = []; sections.add({'name': 'test', 'qustions' : []}); sections[0]['qustions'] = {'asd':'qustions 1'}; sections[0]['qustions'] = {'name':'qustions 2'}; print(sections); returns [{name: test, qustions: {name: qustions 2}}] I want it to returns something like [{name: test, qustions: [{name:…

VIEW QUESTION
Back To Top
Search