toggleSection method
Implementation
void toggleSection(String sectionTitle) {
if (expandedSections.contains(sectionTitle)) {
expandedSections.remove(sectionTitle);
} else {
expandedSections.add(sectionTitle);
}
}
void toggleSection(String sectionTitle) {
if (expandedSections.contains(sectionTitle)) {
expandedSections.remove(sectionTitle);
} else {
expandedSections.add(sectionTitle);
}
}