Flutter/Dart - adding a value of a list to a list

github logo ・1 min read

that is,


Yep, that's it. That's the code. This is the spread operator.

Let's assume you have a list "List", and you want to take the value out of this list and add those value to the surrounding list. It will look something like this,

children: [


above will take out the value inside the List and add it to the children:

twitter logo DISCUSS
Classic DEV Post from Feb 8

Life Can Be Tough, But We Are DAMN Good at What We Do!

We are problem solvers, thinkers, tinkers, and dreamers. Personal challenges, no matter how severe, can NEVER take that away

kenjmoj profile image
Japanese bilingual. 11 yrs in IT. Infrastructure Engineer. Novice programmer. Goal is to publish a mobile app to public stores.