DepartmentUserPicker<U, D> constructor
const
DepartmentUserPicker<U, D> ({
- Key? key,
- int limitNum = noLimit,
- bool allowEmpty = false,
- UserSelectorBuilder<
U, D> ? userSelectorBuilder, - SelectedBuilder<
U> ? userSelectedBuilder, - DepartmentBuilder<
U, D> ? departmentBuilder, - CrumbBuilder<
U, D> ? crumbBuilder, - DepartmentRepo<
D> ? departmentRepo, - UserRepo<
U, D> ? userRepo, - SearchRepo<
U, D> ? searchRepo, - List<
U> ? selectUserList, - String? title,
- bool appBarVisible = true,
- bool? clickWithoutConfirm = false,
- dynamic onParentSelect(
- List<
D> parents
- List<
- bool? showIndex = false,
- List<
String> ? indexList, - IndexPredicate<
U, D> ? indexPredicate, - OnSelected<
U> ? onSelected, - String? searchHint,
- bool refreshEnable = true,
- bool loadMoreEnable = true,
- bool? showSelectedList,
- bool isAutoLeading = true,
- List<
U> ? frozenList, - OnUserClick<
U, D> ? onUserClick, - UserRepoPredication<
D> ? userRepoPredication, - VoidCallback? onBack,
- IndexedWidgetBuilder? separatorBuilder,
- DUPickerController<
U, D> ? controller, - 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);