toggleContextGroup method

bool toggleContextGroup(
  1. String contextGroup
)

Toggles contextGroup on/off and returns the new visibility.

Implementation

bool toggleContextGroup(String contextGroup) {
  if (_visibleContextGroups.contains(contextGroup)) {
    hideContextGroup(contextGroup);
    return false;
  }
  showContextGroup(contextGroup);
  return true;
}