PopupProps<T>.dialog constructor
const
PopupProps<T>.dialog ({
- FlexFit fit = FlexFit.tight,
- Widget? title,
- bool showSearchBox = false,
- DialogProps dialogProps = const DialogProps(),
- TextFieldProps searchFieldProps = const TextFieldProps(),
- ScrollbarProps scrollbarProps = const ScrollbarProps(),
- ListViewProps listViewProps = const ListViewProps(),
- FavoriteItemProps<
T> favoriteItemProps = const FavoriteItemProps(), - Duration searchDelay = const Duration(seconds: 1),
- VoidCallback? onDismissed,
- EmptyBuilder? emptyBuilder,
- HcDropdownSearchPopupItemBuilder<
T> ? itemBuilder, - ErrorBuilder? errorBuilder,
- LoadingBuilder? loadingBuilder,
- bool showSelectedItems = false,
- HcDropdownSearchPopupItemEnabled<
T> ? disabledItemFn, - bool isFilterOnline = false,
- PopupBuilder? containerBuilder,
- BoxConstraints constraints = const BoxConstraints(minWidth: 500, maxWidth: 500, maxHeight: 600),
- 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();