selectOption method
Implementation
void selectOption(AskUserChoice option) {
if (selectedOptions.contains(option)) {
selectedOptions.remove(option);
} else {
selectedOptions.add(option);
}
selectedOptions.refresh();
update();
}
void selectOption(AskUserChoice option) {
if (selectedOptions.contains(option)) {
selectedOptions.remove(option);
} else {
selectedOptions.add(option);
}
selectedOptions.refresh();
update();
}