fork download
  1. void main() {
  2. List<int> list1 = [10, 20, 30];
  3. List<int> list2 = [100, 200, 300];
  4.  
  5. List<int> mergedList = [...list1,...list2];
  6.  
  7. print("Merged List: $mergedList");
  8. }
  9.  
Success #stdin #stdout 1.48s 131372KB
stdin
Standard input is empty
stdout
Merged List: [10, 20, 30, 100, 200, 300]