hideDeeperThan static method

void hideDeeperThan(
  1. int level
)

Implementation

static void hideDeeperThan(int level) {
  final levels = _activeByLevel.keys.where((l) => l > level).toList();
  for (final l in levels) {
    final controller = _activeByLevel[l];
    if (controller != null && controller.isShowing) {
      controller.hide();
    }
    _activeByLevel.remove(l);
    _hoveredLevels.remove(l);
  }
}