addMore method
Implementation
List<T> addMore(List<T>? origin,List<T>add,{bool toLast=true}){
origin=origin??[];
origin.removeWhere((e) => add.any((ae) => getId(ae)==getId(e)));
return toLast?(origin..addAll(add)):[...add,...origin];
}
List<T> addMore(List<T>? origin,List<T>add,{bool toLast=true}){
origin=origin??[];
origin.removeWhere((e) => add.any((ae) => getId(ae)==getId(e)));
return toLast?(origin..addAll(add)):[...add,...origin];
}