popupWidget2 function

dynamic popupWidget2(
  1. GlobalKey<State<StatefulWidget>> _popupKey,
  2. ComboData2 data,
  3. dynamic setValue(
    1. String
    ),
  4. String stringSearchText, {
  5. dynamic selectMany = false,
})

Implementation

popupWidget2(GlobalKey _popupKey, ComboData2 data, Function(String) setValue,
    String stringSearchText,
    {selectMany = false}) {

  _stringSearchText = stringSearchText;

  if (!_isPresent(_popupKey))
    _popups.add(_PopupWindow(
        _popupKey, data: data, setValue: setValue, selectMany: selectMany));

  _PopupWindow current = _getCurrent(_popupKey);
  current.setValue = setValue;
  current.data = data;
}