mergeIds static method Null safety

List<int> mergeIds(
  1. List<int> list,
  2. List<int> list2
)

Implementation

static List<int> mergeIds(List<int> list, List<int> list2) {
  for(var id in list2){
    list = mergeId(list, id);
  }
  return list;
}