toggleGroup method

void toggleGroup(
  1. String id
)

Implementation

void toggleGroup(String id) {
  if (!_expandedGroups.remove(id)) _expandedGroups.add(id);
  notifyListeners();
}