show method

void show({
  1. required BuildContext context,
  2. required DropdownWidget child,
})

Implementation

void show({required BuildContext context, required DropdownWidget child}) {
  _overlayEntry = OverlayEntry(builder: (_) => child);
  if (_overlayEntry == null) return;
  Overlay.of(context).insert(_overlayEntry!);

  _isOpen = true;
  onOpen?.call(true);

  _controller.forward();
}