Bin

mail@pastecode.io avatar
unknown
dart
3 years ago
194 B
2
Indexable
Never
List<dynamic> itemsList = list.map((i) => {
    List<String> answers = i["incorrect_answers"]
    answers.add(i["correct_answer"])
    i["incorrect_answers"] = answers
    return i;
}).toList();