closeOverlay method

void closeOverlay()

Implementation

void closeOverlay() {
  if (!hasOverlay) return;
  _overlayAnimation.reverse().whenComplete(() {
    setState(() {
      _overlayBuilder = null;
      _overlayCompleter?.complete();
      _overlayCompleter = null;
    });
  });
}