removeOverlay method

void removeOverlay()

Implementation

void removeOverlay() {
  if (mounted) {
    _isFocused = false;
    _isOpen = false;
    _overlayEntry.remove();
    if (!widget.searchable && _focusNode.hasPrimaryFocus) {
      _focusNode.unfocus();
    }
  }
}