toggleExpansionIfCollapsible method
Toggle the expansion of the group if it's collapsible.
Implementation
void toggleExpansionIfCollapsible(MenuItemGroup group) {
if (group.isCollapsible) {
group.isExpanded = !group.isExpanded;
}
}
Toggle the expansion of the group if it's collapsible.
void toggleExpansionIfCollapsible(MenuItemGroup group) {
if (group.isCollapsible) {
group.isExpanded = !group.isExpanded;
}
}