DropdownDialog<T> constructor Null safety

DropdownDialog<T>(
  1. {Key? key,
  2. List<DropdownMenuItem<T>>? items,
  3. Widget? hint,
  4. bool isCaseSensitiveSearch = false,
  5. dynamic closeButton,
  6. TextInputType? keyboardType,
  7. Function? searchFn,
  8. required bool multipleSelection,
  9. List<int>? selectedItems,
  10. Function? displayItem,
  11. dynamic doneButton,
  12. Function? validator,
  13. required bool dialogBox,
  14. required PointerThisPlease<bool> displayMenu,
  15. BoxConstraints? menuConstraints,
  16. Function? callOnPop,
  17. Color? menuBackgroundColor,
  18. Function? updateParent,
  19. TextStyle? style,
  20. Color? iconEnabledColor,
  21. Color? iconDisabledColor,
  22. required bool rightToLeft,
  23. required bool autofocus,
  24. required String initialSearchTerms,
  25. Widget buildDropDownDialog(
    1. Widget titleBar,
    2. Widget searchBar,
    3. Widget list,
    4. Widget closeButton,
    5. BuildContext dropDownContext
    )?,
  26. InputDecoration? searchInputDecoration,
  27. int? itemsPerPage,
  28. PointerThisPlease<int>? currentPage,
  29. Widget customPaginationDisplay(
    1. Widget listWidget,
    2. int totalFilteredItemsNb,
    3. Function updateSearchPage
    )?,
  30. Future<Tuple2<List<DropdownMenuItem>, int>> futureSearchFn(
    1. String? keyword,
    2. String? orderBy,
    3. bool? orderAsc,
    4. List<Tuple2<String, String>>? filters,
    5. int? pageNb
    )?,
  31. Map<String, Map<String, dynamic>>? futureSearchOrderOptions,
  32. Map<String, Map<String, Object>>? futureSearchFilterOptions,
  33. List<T>? futureSelectedValues}
)

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,
}) : super(key: key);