update method

void update(
  1. HideSlot slot,
  2. Object id
)

Change slot's id (e.g. on pager swipe). No-op if the slot was already released.

Implementation

void update(HideSlot slot, Object id) {
  if (!_stack.contains(slot)) return;
  final before = hidden;
  slot._id = id;
  if (hidden != before) notifyListeners();
}