TMultiSelect<T, V> constructor
const
TMultiSelect<T, V> ({
- Key? key,
- String? label,
- String? tag,
- String? placeholder,
- String? helperText,
- String? message,
- bool isRequired = false,
- bool disabled = false,
- TInputSize? size,
- Color? color,
- BoxDecoration? boxDecoration,
- Widget? preWidget,
- Widget? postWidget,
- List<
String? Function(List< ? rules,V> ?)> - List<
String> ? errors, - Duration? validationDebounce,
- List<
V> ? value, - ValueNotifier<
List< ? valueNotifier,V> > - ValueChanged<
List< ? onValueChanged,V> > - FocusNode? focusNode,
- List<
T> ? items, - bool multiLevel = false,
- bool filterable = true,
- VoidCallback? onShow,
- VoidCallback? onHide,
- bool? skipValidation,
- ItemTextAccessor<
T> ? itemText, - ItemValueAccessor<
T, V> ? itemValue, - ItemKeyAccessor<
T> ? itemKey, - ItemChildrenAccessor<
T> ? itemChildren, - IconData? selectedIcon,
- VoidCallback? onTap,
- TLoadListener<
T> ? onLoad, - int itemsPerPage = 10,
- List<
int> itemsPerPageOptions = const [], - bool loading = false,
- String? search,
- int searchDelay = 300,
- String itemToString(
- T
- 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,
});