SelectDialog<T> constructor
const
SelectDialog<T> ({
- Key? key,
- Widget? popupTitle,
- List<
T> ? items, - double? maxHeight,
- required String title,
- required TextStyle itemStyle,
- required TextStyle style,
- bool showSearchBox = false,
- bool isFilteredOnline = false,
- ValueChanged<
T> ? onChanged, - T? selectedValue,
- DropdownSearchOnFind<
T> ? onFind, - DropdownSearchPopupItemBuilder<
T> ? itemBuilder, - InputDecoration? searchBoxDecoration,
- String? hintText,
- DropdownSearchItemAsString<
T> ? itemAsString, - DropdownSearchFilterFn<
T> ? filterFn, - bool showSelectedItem = false,
- DropdownSearchCompareFn<
T> ? compareFn, - EmptyBuilder? emptyBuilder,
- LoadingBuilder? loadingBuilder,
- ErrorBuilder? errorBuilder,
- bool autoFocusSearchBox = false,
- double? dialogMaxWidth,
- DropdownSearchPopupItemEnabled<
T> ? itemDisabled, - TextEditingController? searchBoxController,
- Duration? searchDelay,
- FavoriteItemsBuilder<
T> ? favoriteItemBuilder, - FavoriteItems<
T> ? favoriteItems, - bool showFavoriteItems = false,
- MainAxisAlignment? favoriteItemsAlignment = MainAxisAlignment.start,
- TextStyle? searchBoxStyle,
- TextFieldProps? searchFieldProps,
- ScrollbarProps? scrollbarProps,
Implementation
const SelectDialog({
Key? key,
this.popupTitle,
this.items,
this.maxHeight,
required this.title,
required this.itemStyle,
required this.style,
this.showSearchBox = false,
this.isFilteredOnline = false,
this.onChanged,
this.selectedValue,
this.onFind,
this.itemBuilder,
this.searchBoxDecoration,
this.hintText,
this.itemAsString,
this.filterFn,
this.showSelectedItem = false,
this.compareFn,
this.emptyBuilder,
this.loadingBuilder,
this.errorBuilder,
this.autoFocusSearchBox = false,
this.dialogMaxWidth,
this.itemDisabled,
this.searchBoxController,
this.searchDelay,
this.favoriteItemBuilder,
this.favoriteItems,
this.showFavoriteItems = false,
this.favoriteItemsAlignment = MainAxisAlignment.start,
this.searchBoxStyle,
this.searchFieldProps,
this.scrollbarProps,
}) : super(key: key);