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(),
- SuggestedItemProps<
T> suggestedItemProps = const SuggestedItemProps(), - Duration searchDelay = const Duration(seconds: 1),
- VoidCallback? onDismissed,
- EmptyBuilder? emptyBuilder,
- DropdownSearchPopupItemBuilder<
T> ? itemBuilder, - ErrorBuilder? errorBuilder,
- LoadingBuilder? loadingBuilder,
- bool showSelectedItems = false,
- DropdownSearchPopupItemEnabled<
T> ? disabledItemFn, - bool disableFilter = false,
- bool cacheItems = false,
- PopupBuilder? containerBuilder,
- BoxConstraints constraints = const BoxConstraints(minWidth: 500, maxWidth: 500, maxHeight: 600),
- bool interceptCallBacks = false,
- InfiniteScrollProps? infiniteScrollProps,
- ValueChanged<
List< ? onItemsLoaded,T> > - 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();