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

Popular posts from this blog

sql - Return Function using Cursor -

sql server - How to use pivot in this table -

javascript - Is there any way to add a new parameter to a function programmatically? -