DepartmentUserPicker<U, D> constructor

const DepartmentUserPicker<U, D>({
  1. Key? key,
  2. int limitNum = noLimit,
  3. bool allowEmpty = false,
  4. UserSelectorBuilder<U, D>? userSelectorBuilder,
  5. SelectedBuilder<U>? userSelectedBuilder,
  6. DepartmentBuilder<U, D>? departmentBuilder,
  7. CrumbBuilder<U, D>? crumbBuilder,
  8. DepartmentRepo<D>? departmentRepo,
  9. UserRepo<U, D>? userRepo,
  10. SearchRepo<U, D>? searchRepo,
  11. List<U>? selectUserList,
  12. String? title,
  13. bool appBarVisible = true,
  14. bool? clickWithoutConfirm = false,
  15. dynamic onParentSelect(
    1. List<D> parents
    )?,
  16. bool? showIndex = false,
  17. List<String>? indexList,
  18. IndexPredicate<U, D>? indexPredicate,
  19. OnSelected<U>? onSelected,
  20. String? searchHint,
  21. bool refreshEnable = true,
  22. bool loadMoreEnable = true,
  23. bool? showSelectedList,
  24. bool isAutoLeading = true,
  25. List<U>? frozenList,
  26. OnUserClick<U, D>? onUserClick,
  27. UserRepoPredication<D>? userRepoPredication,
  28. VoidCallback? onBack,
  29. IndexedWidgetBuilder? separatorBuilder,
  30. DUPickerController<U, D>? controller,
  31. VoidCallback? onDataChanged,
})

Implementation

const DepartmentUserPicker({
  super.key,
  this.limitNum = noLimit,
  this.allowEmpty = false,
  this.userSelectorBuilder,
  this.userSelectedBuilder,
  this.departmentBuilder,
  this.crumbBuilder,
  this.departmentRepo,
  this.userRepo,
  this.searchRepo,
  this.selectUserList,
  this.title,
  this.appBarVisible = true,
  this.clickWithoutConfirm = false,
  this.onParentSelect,
  this.showIndex = false,
  this.indexList,
  this.indexPredicate,
  this.onSelected,
  this.searchHint,
  this.refreshEnable = true,
  this.loadMoreEnable = true,
  this.showSelectedList,
  this.isAutoLeading = true,
  this.frozenList,
  this.onUserClick,
  this.userRepoPredication,
  this.onBack,
  this.separatorBuilder,
  this.controller,
  this.onDataChanged,
}) : assert(limitNum == noLimit || limitNum > 0);