I have a List in the following format:
List<ImageCollections> collectionlist;
It looks like this:
collectionlist = [
{ collectionname: 'abc', srcimage: url1, collectionimgnumber: 5, hreflink: link1 },
{ collectionname: 'xyz', srcimage: url2, collectionimgnumber: 4, hreflink: link2 },
...
];
Is there a way I can create a new List containing only the srcimage of each entry?
The new list should look like this:
newList = [ url1, url2, ... ];