open method

bool open()

Implementation

bool open() {
  if (hideSuggestionOverlay) {
    return false;
  }
  switch (_status) {
    case ControllerStatus.open:
      return true;
    case ControllerStatus.closed:
      if (_overlayEntry != null) {
        Overlay.of(_context)!.insert(_overlayEntry!);
        _status = ControllerStatus.open;
        return true;
      } else {
        _status = ControllerStatus.opening;
        return false;
      }
    case ControllerStatus.opening:
      return true;
    default:
      return false;
  }
}