PopupProps<T>.dialog constructor

const PopupProps<T>.dialog({
  1. FlexFit fit = FlexFit.tight,
  2. Widget? title,
  3. bool showSearchBox = false,
  4. DialogProps dialogProps = const DialogProps(),
  5. TextFieldProps searchFieldProps = const TextFieldProps(),
  6. ScrollbarProps scrollbarProps = const ScrollbarProps(),
  7. ListViewProps listViewProps = const ListViewProps(),
  8. SuggestedItemProps<T> suggestedItemProps = const SuggestedItemProps(),
  9. Duration searchDelay = const Duration(seconds: 1),
  10. VoidCallback? onDismissed,
  11. EmptyBuilder? emptyBuilder,
  12. DropdownSearchPopupItemBuilder<T>? itemBuilder,
  13. ErrorBuilder? errorBuilder,
  14. LoadingBuilder? loadingBuilder,
  15. bool showSelectedItems = false,
  16. DropdownSearchPopupItemEnabled<T>? disabledItemFn,
  17. bool disableFilter = false,
  18. bool cacheItems = false,
  19. PopupBuilder? containerBuilder,
  20. BoxConstraints constraints = const BoxConstraints(minWidth: 500, maxWidth: 500, maxHeight: 600),
  21. bool interceptCallBacks = false,
  22. InfiniteScrollProps? infiniteScrollProps,
  23. ValueChanged<List<T>>? onItemsLoaded,
  24. ClickProps itemClickProps = const ClickProps(),
})

Implementation

const PopupProps.dialog({
  this.fit = FlexFit.tight,
  this.title,
  this.showSearchBox = false,
  this.dialogProps = const DialogProps(),
  this.searchFieldProps = const TextFieldProps(),
  this.scrollbarProps = const ScrollbarProps(),
  this.listViewProps = const ListViewProps(),
  this.suggestedItemProps = const SuggestedItemProps(),
  this.searchDelay = const Duration(seconds: 1),
  this.onDismissed,
  this.emptyBuilder,
  this.itemBuilder,
  this.errorBuilder,
  this.loadingBuilder,
  this.showSelectedItems = false,
  this.disabledItemFn,
  this.disableFilter = false,
  this.cacheItems = false,
  this.containerBuilder,
  this.constraints = const BoxConstraints(
    minWidth: 500,
    maxWidth: 500,
    maxHeight: 600,
  ),
  this.interceptCallBacks = false,
  this.infiniteScrollProps,
  this.onItemsLoaded,
  this.itemClickProps = const ClickProps(),
})  : mode = PopupMode.dialog,
      menuProps = const MenuProps(),
      bottomSheetProps = const BottomSheetProps(),
      modalBottomSheetProps = const ModalBottomSheetProps();