public override void dispose() { _focusNode.dispose(); _textEditingController.dispose(); _screenOverlayState.RemoveOnTapListener(LoseFocus); base.dispose(); }
public void Dismiss() { _screenOverlayState?.RemoveOnTapListener(OnScreenTap); switch (widget._overlayType) { case DropDownOverlayType.scrollable: if (_guid != null) { ScrollableOverlay.of(context).Remove(_guid.Value); } break; case DropDownOverlayType.builtin: _overlayEntry.remove(); break; default: throw new ArgumentOutOfRangeException(); } _expanded = false; }