PopupProps<T>.modalBottomSheet constructor

const PopupProps<T>.modalBottomSheet({
  1. Widget? title,
  2. FlexFit fit = FlexFit.tight,
  3. bool showSearchBox = false,
  4. ModalBottomSheetProps modalBottomSheetProps = const ModalBottomSheetProps(),
  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(maxHeight: 500),
  20. bool interceptCallBacks = false,
})

Implementation

const PopupProps.modalBottomSheet({
  this.title,
  this.fit = FlexFit.tight,
  this.showSearchBox = false,
  this.modalBottomSheetProps = const ModalBottomSheetProps(),
  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(maxHeight: 500),
  this.interceptCallBacks = false,
})  : mode = Mode.modalBottomSheet,
      menuProps = const MenuProps(),
      dialogProps = const DialogProps(),
      bottomSheetProps = const BottomSheetProps();