mergeLists<T extends dynamic> static method Null safety

List<T> mergeLists<T extends dynamic>(
  1. List<T> list,
  2. List<T> list2,
  3. {List<String> compares = const ['id']}
)

Implementation

static List<T> mergeLists<T extends dynamic>(List<T> list, List<T> list2, { List<String> compares = const ['id']}){

  for(var e in list2){
    list = merge(list, e, compares: compares);
  }
  return list;
}