toggle method

void toggle(
  1. BuildContext context
)

Implementation

void toggle(BuildContext context) {
  if (hideSuggestionOverlay) {
    return;
  }
  if (_status != ControllerStatus.closed) {
    this.close();
  } else {
    this.open();
  }
}