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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -