SelectDialog<T> constructor

const SelectDialog<T>({
  1. Key? key,
  2. Widget? popupTitle,
  3. List<T>? items,
  4. double? maxHeight,
  5. required String title,
  6. required TextStyle itemStyle,
  7. required TextStyle style,
  8. bool showSearchBox = false,
  9. bool isFilteredOnline = false,
  10. ValueChanged<T>? onChanged,
  11. T? selectedValue,
  12. DropdownSearchOnFind<T>? onFind,
  13. DropdownSearchPopupItemBuilder<T>? itemBuilder,
  14. InputDecoration? searchBoxDecoration,
  15. String? hintText,
  16. DropdownSearchItemAsString<T>? itemAsString,
  17. DropdownSearchFilterFn<T>? filterFn,
  18. bool showSelectedItem = false,
  19. DropdownSearchCompareFn<T>? compareFn,
  20. EmptyBuilder? emptyBuilder,
  21. LoadingBuilder? loadingBuilder,
  22. ErrorBuilder? errorBuilder,
  23. bool autoFocusSearchBox = false,
  24. double? dialogMaxWidth,
  25. DropdownSearchPopupItemEnabled<T>? itemDisabled,
  26. TextEditingController? searchBoxController,
  27. Duration? searchDelay,
  28. FavoriteItemsBuilder<T>? favoriteItemBuilder,
  29. FavoriteItems<T>? favoriteItems,
  30. bool showFavoriteItems = false,
  31. MainAxisAlignment? favoriteItemsAlignment = MainAxisAlignment.start,
  32. TextStyle? searchBoxStyle,
  33. TextFieldProps? searchFieldProps,
  34. 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);