SelectSubjects constructor

const SelectSubjects({
  1. Key? key,
  2. required Meshagent client,
  3. required String projectId,
  4. required void onChanged(
    1. List<AccessSubject>
    ),
  5. Set<SelectSubjectType> allowedTypes = const {SelectSubjectType.user, SelectSubjectType.group},
  6. SelectSubjectsController? controller,
  7. TextEditingController? textController,
  8. bool autofocus = false,
  9. FocusNode? focusNode,
  10. List<AccessSubject> initialValue = const [],
  11. bool allowNewUserEmail = false,
  12. int? maxSelected,
  13. Widget? placeholder,
})

Implementation

const SelectSubjects({
  super.key,
  required this.client,
  required this.projectId,
  required this.onChanged,
  this.allowedTypes = const {SelectSubjectType.user, SelectSubjectType.group},
  this.controller,
  this.textController,
  this.autofocus = false,
  this.focusNode,
  this.initialValue = const [],
  this.allowNewUserEmail = false,
  this.maxSelected,
  this.placeholder,
});