I usually use this method to add list into another list
List newData = data;
But one of my developer friend use this ... operator to add list into another list like this, what is the difference between this both method ? I try to search for the answer but cannot understand.
List data = [
{
'value': 'value one',
},
{
'value': 'value two',
},
];
List newData = [...data];