setFoundationSelection function
void
setFoundationSelection()
Stores a real foundation option or removes its key for None/skip.
Implementation
void setFoundationSelection(
Map<String, String> selections,
String capabilityId,
String? optionId,
) {
if (optionId == null ||
_absentFoundationOptionIds.contains(optionId.toLowerCase())) {
selections.remove(capabilityId);
} else {
selections[capabilityId] = optionId;
}
}