xxxxxxxxxx
// "..." also known as "Spread Operator"
// provide a concise way to insert multiple values into a collection
var a = [0,1,2,3,4];
var b = [6,7,8,9];
var c = [a,5,b];
// where "...a" means: all elements of list "a"
// and "...b" means: all elements of list "b"
print(c);
// prints: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
xxxxxxxxxx
List<String> values = ['one', 'two', 'three'];
return Scaffold(
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
values.map((value) {
return Text(value);
}),
],
),
),
);