While looking at some code written in flutter, I keep seeing "..." used in different situations, but do not really understand how and why it is used. Here is an example :
CircleAvatar(
radius: size / 2,
child: DragTarget<Animal>(
builder: (context, candidateData, rejectedData) => Stack(
children: [
...animals
.map((animal) => DraggableWidget(animal: animal))
.toList(),
IgnorePointer(child: Center(child: buildText(text))),
],
),
onWillAccept: (data) => true,
onAccept: (data)
Can someone explain it to me ?