multiSelect<T, V> static method

TFormField<List<V>> multiSelect<T, V>(
  1. TFieldProp<List<V>> prop,
  2. String? label, {
  3. String? tag,
  4. String? placeholder,
  5. String? helperText,
  6. bool isRequired = false,
  7. bool disabled = false,
  8. List<String? Function(List<V>?)>? rules,
  9. List<T>? items,
  10. ItemTextAccessor<T>? itemText,
  11. ItemValueAccessor<T, V>? itemValue,
  12. ItemChildrenAccessor<T>? itemChildren,
  13. ItemKeyAccessor<T>? itemKey,
  14. bool multiLevel = false,
  15. int itemsPerPage = 10,
  16. TLoadListener<T>? onLoad,
  17. 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,
  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,
      rules: rules,
      value: prop.value,
      valueNotifier: prop.valueNotifier,
      onValueChanged: onValueChanged,
      items: items,
      itemText: itemText,
      itemValue: itemValue,
      itemChildren: itemChildren,
      itemKey: itemKey,
      multiLevel: multiLevel,
      itemsPerPage: itemsPerPage,
      onLoad: onLoad,
      searchDelay: searchDelay,
    ),
  );
}