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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -