DropdownDialog<T>(- {Key? key,
- List<DropdownMenuItem<T>>? items,
- Widget? hint,
- bool isCaseSensitiveSearch = false,
- dynamic closeButton,
- TextInputType? keyboardType,
- Function? searchFn,
- required bool multipleSelection,
- List<int>? selectedItems,
- Function? displayItem,
- dynamic doneButton,
- Function? validator,
- required bool dialogBox,
- Function? callOnPop,
- Function? updateParent,
- TextStyle? style,
- Color? iconEnabledColor,
- Color? iconDisabledColor,
- required bool rightToLeft,
- required bool autofocus,
- required String initialSearchTerms,
- Widget buildDropDownDialog(
- Widget titleBar,
- Widget searchBar,
- Widget list,
- Widget closeButton,
- BuildContext dropDownContext
)?,
- InputDecoration? searchInputDecoration,
- int? itemsPerPage,
- PointerThisPlease<int>? currentPage,
- Future<Tuple2<List<DropdownMenuItem>, int>> futureSearchFn(
- String? keyword,
- String? orderBy,
- bool? orderAsc,
- List<Tuple2<String, String>>? filters,
- int? pageNb
)?,
- Map<String, Map<String, dynamic>>? futureSearchOrderOptions,
- Map<String, Map<String, Object>>? futureSearchFilterOptions,
- List<T>? futureSelectedValues,
- dynamic emptyListWidget,
- Function? onTap,
- Function? futureSearchRetryButton,
- int? searchDelay}
)
Implementation
DropdownDialog({
Key? key,
this.items,
this.hint,
this.isCaseSensitiveSearch = false,
this.closeButton,
this.keyboardType,
this.searchFn,
required this.multipleSelection,
this.selectedItems,
this.displayItem,
this.doneButton,
this.validator,
required this.dialogBox,
required this.displayMenu,
this.menuConstraints,
this.callOnPop,
this.menuBackgroundColor,
this.updateParent,
this.style,
this.iconEnabledColor,
this.iconDisabledColor,
required this.rightToLeft,
required this.autofocus,
required this.initialSearchTerms,
this.buildDropDownDialog,
this.searchInputDecoration,
this.itemsPerPage,
this.currentPage,
this.customPaginationDisplay,
this.futureSearchFn,
this.futureSearchOrderOptions,
this.futureSearchFilterOptions,
this.futureSelectedValues,
this.emptyListWidget,
this.onTap,
this.futureSearchRetryButton,
this.searchDelay,
}) : super(key: key);