...
//Given
List text = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
...
body: Column(
children: List.generate(text.length, (index) { //Generate children widget list(no [ ]).
return Text(
text[index].toString(),
style: const TextStyle(fontSize: 22),
);
}),
),
);
}
}
...