acquire method

HideSlot acquire(
  1. Object id
)

Push a new hide-slot. The owner must keep the returned HideSlot and pass it back to update / release.

Implementation

HideSlot acquire(Object id) {
  final slot = HideSlot._(id);
  final before = hidden;
  _stack.add(slot);
  if (hidden != before) notifyListeners();
  return slot;
}