hideOverlayEntryIfExists function
Implementation
void hideOverlayEntryIfExists({bool toRunHook = true}) {
if (_visibleOverlayPage != null) {
_printIfDebug(
'hideOverlayEntryIfExists', "found tag ${_visibleOverlayPage!.tagName}");
if (toRunHook && hideOverlayHook != null) {
hideOverlayHook!(_visibleOverlayPage!.tagName);
}
_visibleOverlayPage!.hideOverlay();
_visibleOverlayPage!.entry.remove();
_visibleOverlayPage = null;
}
}