ValueField<T> constructor

const ValueField<T>({
  1. Key? key,
  2. required void onChanged(
    1. T? value,
    2. string? valueString
    ),
  3. String? label,
  4. int levenshteinDistance = 2,
  5. Iterable<T> options = const [],
  6. List<TextInputFormatter> inputFormatters = const [],
  7. void onEditingComplete()?,
  8. String? validator(
    1. T?
    )?,
  9. double? max,
  10. int lines = 1,
  11. T? value,
  12. bool readOnly = false,
  13. bool isAutoComplete = false,
  14. TextInputType? keyboardType,
  15. TextAlign? textAlign,
  16. bool obscureText = false,
  17. FocusNode? focusNode,
  18. bool autofocus = false,
  19. IconData? icon,
  20. void onIconTap()?,
  21. Future<List<T>> asyncItems(
    1. String
    )?,
  22. Color? color,
  23. List<string> textValueSelector(
    1. T?
    )?,
  24. Widget itemBuilder(
    1. BuildContext context,
    2. T,
    3. bool isSelected
    )?,
  25. List searchOn(
    1. T
    )?,
  26. dynamic suffixIcon,
  27. void onSuffixIconTap()?,
  28. Duration? debounce,
  29. void onFieldSubmitted(
    1. string
    )?,
  30. TextEditingController? controller,
  31. bool equalityFunction(
    1. T a,
    2. T b
    )?,
  32. int comparatorFunction(
    1. T a,
    2. T b
    )?,
  33. TextInputAction? textInputAction,
  34. Widget emptySearch(
    1. BuildContext context,
    2. string searchEntry,
    3. string label
    )?,
  35. InputDecoration? decoration,
})

Implementation

const ValueField({
  super.key,
  required this.onChanged,
  this.label,
  this.levenshteinDistance = 2,
  this.options = const [],
  this.inputFormatters = const [],
  this.onEditingComplete,
  this.validator,
  this.max,
  this.lines = 1,
  this.value,
  this.readOnly = false,
  this.isAutoComplete = false,
  this.keyboardType,
  this.textAlign,
  this.obscureText = false,
  this.focusNode,
  this.autofocus = false,
  this.icon,
  this.onIconTap,
  this.asyncItems,
  this.color,
  this.textValueSelector,
  this.itemBuilder,
  this.searchOn,
  this.suffixIcon,
  this.onSuffixIconTap,
  this.debounce,
  this.onFieldSubmitted,
  this.controller,
  this.equalityFunction,
  this.comparatorFunction,
  this.textInputAction,
  this.emptySearch,
  this.decoration,
});