multiSelect<T, V> static method
TFormField<List<V> >
multiSelect<T, V>(
- TFieldProp<
List< prop,V> > - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- bool readOnly = false,
- TTagsFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- TextEditingController? textController,
- List<
String? Function(List< ? rules,V> ?)> - List<
T> ? items, - ItemTextAccessor<
T> ? itemText, - ItemValueAccessor<
T, V> ? itemValue, - ItemChildrenAccessor<
T> ? itemChildren, - ItemKeyAccessor<
T> ? itemKey, - bool multiLevel = false,
- int itemsPerPage = 10,
- TLoadListener<
T> ? onLoad, - int searchDelay = 2500,
Implementation
static TFormField<List<V>> multiSelect<T, V>(
TFieldProp<List<V>> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
bool readOnly = false,
TTagsFieldTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
TextEditingController? textController,
List<String? Function(List<V>?)>? rules,
List<T>? items,
ItemTextAccessor<T>? itemText,
ItemValueAccessor<T, V>? itemValue,
ItemChildrenAccessor<T>? itemChildren,
ItemKeyAccessor<T>? itemKey,
bool multiLevel = false,
int itemsPerPage = 10,
TLoadListener<T>? onLoad,
int searchDelay = 2500,
}) {
return TFormField<List<V>>(
prop: prop,
builder: (onValueChanged) => TMultiSelect(
label: label,
tag: tag,
placeholder: placeholder,
helperText: helperText,
isRequired: isRequired,
disabled: disabled,
autoFocus: autoFocus,
readOnly: readOnly,
theme: theme,
focusNode: focusNode,
onTap: onTap,
textController: textController,
rules: rules,
items: items,
itemText: itemText,
itemValue: itemValue,
itemChildren: itemChildren,
itemKey: itemKey,
multiLevel: multiLevel,
itemsPerPage: itemsPerPage,
onLoad: onLoad,
searchDelay: searchDelay,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}