removeOverlay method

void removeOverlay()

method for remove overlay

Implementation

void removeOverlay() {
  if (currentIndex == initialList.length) {
    overlayBlock?.remove();
    overlayBlock = null;
  }
  overlayEntry?.remove();
  overlayEntry = null;
}