DEV Community

kenjmoj
kenjmoj

Posted on

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

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: [
  ...List

]

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

Top comments (0)