showOverlay method

void showOverlay()

Shows the search overlay.

Implementation

void showOverlay() {
  if (_isOverlayVisible) return;
  _isOverlayVisible = true;
  // Preserve the focused index when reopening

  // If cubit is in initial state and searchOnEmpty is true, trigger initial fetch
  if (_cubit.state is SmartPaginationInitial && _config.searchOnEmpty) {
    _performSearch(_textController.text);
  }

  notifyListeners();
}