mergeParams method
Map<String?, List<PickerEntity> >
mergeParams(
- Map<
String?, List< params,PickerEntity> > - Map<
String?, List< selectedParamsPickerEntity> >
Implementation
Map<String?, List<PickerEntity>> mergeParams(
Map<String?, List<PickerEntity>> params,
Map<String?, List<PickerEntity>> selectedParams) {
selectedParams.forEach((String? key, List<PickerEntity> value) {
if (params.containsKey(key)) {
params[key]?.addAll(value);
} else {
params.addAll(selectedParams);
}
});
return params;
}