release method

void release(
  1. HideSlot slot
)

Pop slot from the stack. No-op if already released. When slot is the top, the previous slot's id (if any) becomes hidden again.

Implementation

void release(HideSlot slot) {
  final before = hidden;
  if (!_stack.remove(slot)) return;
  if (hidden != before) notifyListeners();
}