select<T, V, K> static method

TFormField<V?> select<T, V, K>(
  1. TFieldProp<V?> prop,
  2. String? label, {
  3. String? tag,
  4. String? placeholder,
  5. String? helperText,
  6. bool isRequired = false,
  7. bool disabled = false,
  8. bool autoFocus = false,
  9. bool readOnly = false,
  10. TTextFieldTheme? theme,
  11. FocusNode? focusNode,
  12. VoidCallback? onTap,
  13. TextEditingController? textController,
  14. List<String? Function(V?)>? rules,
  15. List<T>? items,
  16. ItemKeyAccessor<T, K>? itemKey,
  17. ItemValueAccessor<T, V>? itemValue,
  18. ItemTextAccessor<T>? itemText,
  19. ItemTextAccessor<T>? itemSubText,
  20. ItemTextAccessor<T>? itemImageUrl,
  21. ItemChildrenAccessor<T>? itemChildren,
  22. int? itemsPerPage = 6,
  23. TLoadListener<T>? onLoad,
  24. 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,
    ),
  );
}