generics - Is there a simple way to combine two lists in Dart? -
I was thinking that it was an easy way to add two lists to the dart to create a new list item. I could not find anything else:
var newList = list1 + list2; is not valid.
You can use:
var newList = new list From (list1) .. addAll (list2);
Comments
Post a Comment