closeDropDownSearch method

void closeDropDownSearch()

close dropdownSearch popup if it's open

Implementation

void closeDropDownSearch() {
  if (widget.popupProps.mode == PopupMode.autocomplete) {
    _customOverlyEntry?.close();
    _customOverlyEntry = null;
  } else {
    if (_popupStateKey.currentState?.mounted == true && context.mounted) {
      Navigator.of(context).pop();
    }
  }
}