That is the “spread operator”. It is used to “unpack” one collection and place the contents into another collection. In your code example, Row wants a List of Widgets (“children”); if the state is TimerInitial, children is being populated by a List of one FloatingActionButton.
I’m not that experienced with Flutter, so I haven’t seen this kind of usage before. I’ve more seen ... used to fill out a Column’s children, converting items one-by-one into Widgets.
// names is a List of Strings
// we want a list of Widgets
Column(
children: [
...names.map((name) {
return Text(name)
})
]
)
Here is a reference to ... in the Dart docs, though it doesn’t say much.
Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape.