n;
  }

  final container = _findContainerByUniqueId(uniqueId);
  if (container != null) {
    containers.remove(container);
    BoostLifecycleBinding.instance.containerDidPop(container, topContainer);

    &#47;&#47;remove the overlayEntry matching this container
    refreshOnRemove(container);
  } else {
    for (var container in containers) {
      final page = container.pages.singleWhere(
          (entry) =&gt; entry.pageInfo.uniqueId == uniqueId,
          orElse: () =&gt; null);
      container.remov