select<T, V, K> static method
TFormField<V?>
select<T, V, K>(
- TFieldProp<
V?> prop, - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- bool readOnly = false,
- TTextFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- TextEditingController? textController,
- List<
String? Function(V?)> ? rules, - List<
T> ? items, - ItemKeyAccessor<
T, K> ? itemKey, - ItemValueAccessor<
T, V> ? itemValue, - ItemTextAccessor<
T> ? itemText, - ItemTextAccessor<
T> ? itemSubText, - ItemTextAccessor<
T> ? itemImageUrl, - ItemChildrenAccessor<
T> ? itemChildren, - int? itemsPerPage = 6,
- TLoadListener<
T> ? onLoad, - int? searchDelay,
Implementation
static TFormField<V?> select<T, V, K>(
TFieldProp<V?> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
bool readOnly = false,
TTextFieldTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
TextEditingController? textController,
List<String? Function(V?)>? rules,
List<T>? items,
ItemKeyAccessor<T, K>? itemKey,
ItemValueAccessor<T, V>? itemValue,
ItemTextAccessor<T>? itemText,
ItemTextAccessor<T>? itemSubText,
ItemTextAccessor<T>? itemImageUrl,
ItemChildrenAccessor<T>? itemChildren,
int? itemsPerPage = 6,
TLoadListener<T>? onLoad,
int? searchDelay,
}) {
return TFormField<V?>(
prop: prop,
builder: (onValueChanged) => TSelect<T, V, K>(
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,
itemSubText: itemSubText,
itemImageUrl: itemImageUrl,
itemChildren: itemChildren,
itemValue: itemValue,
itemKey: itemKey,
itemsPerPage: itemsPerPage,
onLoad: onLoad,
searchDelay: searchDelay,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}