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. FavoriteItemProps<T> favoriteItemProps = const FavoriteItemProps(),
  9. Duration searchDelay = const Duration(seconds: 1),
  10. VoidCallback? onDismissed,
  11. EmptyBuilder? emptyBuilder,
  12. HcDropdownSearchPopupItemBuilder<T>? itemBuilder,
  13. ErrorBuilder? errorBuilder,
  14. LoadingBuilder? loadingBuilder,
  15. bool showSelectedItems = false,
  16. HcDropdownSearchPopupItemEnabled<T>? disabledItemFn,
  17. bool isFilterOnline = false,
  18. PopupBuilder? containerBuilder,
  19. BoxConstraints constraints = const BoxConstraints(minWidth: 500, maxWidth: 500, maxHeight: 600),
  20. bool interceptCallBacks = false,
})

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.favoriteItemProps = const FavoriteItemProps(),
  this.searchDelay = const Duration(seconds: 1),
  this.onDismissed,
  this.emptyBuilder,
  this.itemBuilder,
  this.errorBuilder,
  this.loadingBuilder,
  this.showSelectedItems = false,
  this.disabledItemFn,
  this.isFilterOnline = false,
  this.containerBuilder,
  this.constraints = const BoxConstraints(
    minWidth: 500,
    maxWidth: 500,
    maxHeight: 600,
  ),
  this.interceptCallBacks = false,
})  : mode = Mode.dialog,
      menuProps = const MenuProps(),
      bottomSheetProps = const BottomSheetProps(),
      modalBottomSheetProps = const ModalBottomSheetProps();