I have simple method like this:
List<Widget> stringsToWidgets( List<String>? a) {
List<Text> b = [];
for (var item in a) {
b.add(Text(item));
}
return b;
}
Column(children: stringsToWidgets(["1", "2", "3"]));
I have column, and children of it come from this method.
How to do it faster in place, without this stringsToWidgets
method?