I was wondering if there was an easy way to concatenate two lists in dart to create a brand new list object. I couldn\'t find anything and something like this:
My list:>
No need to create a third list in my opinion...
Use this:
list1 = [1, 2, 3]; list2 = [4, 5, 6]; list1.addAll(list2); print(list1); // [1, 2, 3, 4, 5, 6] // is our final result!