TMultiSelect<T, V> constructor

const TMultiSelect<T, V>({
  1. Key? key,
  2. String? label,
  3. String? tag,
  4. String? placeholder,
  5. String? helperText,
  6. String? message,
  7. bool isRequired = false,
  8. bool disabled = false,
  9. TInputSize? size,
  10. Color? color,
  11. BoxDecoration? boxDecoration,
  12. Widget? preWidget,
  13. Widget? postWidget,
  14. List<String? Function(List<V>?)>? rules,
  15. List<String>? errors,
  16. Duration? validationDebounce,
  17. List<V>? value,
  18. ValueNotifier<List<V>>? valueNotifier,
  19. ValueChanged<List<V>>? onValueChanged,
  20. FocusNode? focusNode,
  21. List<T>? items,
  22. bool multiLevel = false,
  23. bool filterable = true,
  24. String? footerMessage,
  25. VoidCallback? onShow,
  26. VoidCallback? onHide,
  27. bool? skipValidation,
  28. ItemTextAccessor<T>? itemText,
  29. ItemValueAccessor<T, V>? itemValue,
  30. ItemKeyAccessor<T>? itemKey,
  31. ItemChildrenAccessor<T>? itemChildren,
  32. IconData? selectedIcon,
  33. VoidCallback? onTap,
  34. TLoadListener<T>? onLoad,
  35. int itemsPerPage = 10,
  36. List<int> itemsPerPageOptions = const [],
  37. bool loading = false,
  38. String? search,
  39. int searchDelay = 300,
  40. String itemToString(
    1. T
    )?,
  41. TPaginationController? controller,
})

Implementation

const TMultiSelect({
  super.key,
  this.label,
  this.tag,
  this.placeholder,
  this.helperText,
  this.message,
  this.isRequired = false,
  this.disabled = false,
  this.size,
  this.color,
  this.boxDecoration,
  this.preWidget,
  this.postWidget,
  this.rules,
  this.errors,
  this.validationDebounce,
  this.value,
  this.valueNotifier,
  this.onValueChanged,
  this.focusNode,
  this.items,
  this.multiLevel = false,
  this.filterable = true,
  this.footerMessage,
  this.onShow,
  this.onHide,
  this.skipValidation,
  this.itemText,
  this.itemValue,
  this.itemKey,
  this.itemChildren,
  this.selectedIcon,
  this.onTap,
  // Server-side pagination
  this.onLoad,
  this.itemsPerPage = 10,
  this.itemsPerPageOptions = const [],
  this.loading = false,
  this.search,
  this.searchDelay = 300,
  this.itemToString,
  this.controller,
});