PopupProps<T>.bottomSheet constructor

const PopupProps<T>.bottomSheet({
  1. FlexFit fit = FlexFit.tight,
  2. Widget? title,
  3. bool showSearchBox = false,
  4. BottomSheetProps bottomSheetProps = const BottomSheetProps(),
  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. DropdownSearchPopupItemBuilder<T>? itemBuilder,
  13. ErrorBuilder? errorBuilder,
  14. LoadingBuilder? loadingBuilder,
  15. bool showSelectedItems = false,
  16. DropdownSearchPopupItemEnabled<T>? disabledItemFn,
  17. bool isFilterOnline = false,
  18. PopupBuilder? containerBuilder,
  19. BoxConstraints constraints = const BoxConstraints(maxHeight: 500),
  20. bool interceptCallBacks = false,
})

Implementation

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