AutoComplete constructor

const AutoComplete({
  1. Key? key,
  2. required List<String> suggestions,
  3. required ValueChanged<String> onChanged,
  4. String? initialValue,
  5. TextEditingController? controller,
  6. bool border = true,
  7. bool enabled = true,
  8. bool readOnly = false,
  9. List<TextInputFormatter> inputFormatters = const [],
  10. String? placeholder,
  11. ValueChanged<int>? onAcceptSuggestion,
  12. FocusNode? focusNode,
  13. AlignmentGeometry? popoverAlignment,
  14. AlignmentGeometry? popoverAnchorAlignment,
  15. PopoverConstraint? popoverWidthConstraint,
  16. BoxConstraints? popoverConstraints,
  17. Widget? leading,
  18. Widget? trailing,
  19. EdgeInsetsGeometry? padding,
  20. ValueChanged<String>? onSubmitted,
  21. VoidCallback? onEditingComplete,
  22. VoidCallback? onTap,
  23. bool obscureText = false,
  24. String obscuringCharacter = '•',
  25. int? maxLength,
  26. MaxLengthEnforcement? maxLengthEnforcement,
  27. int? maxLines,
  28. int? minLines,
  29. BorderRadiusGeometry? borderRadius,
  30. TextAlign textAlign = TextAlign.start,
  31. bool expands = false,
  32. TextAlignVertical? textAlignVertical,
  33. UndoHistoryController? undoController,
  34. Iterable<String>? autofillHints,
  35. void onTapOutside(
    1. PointerDownEvent event
    )?,
  36. TextStyle? style,
  37. EditableTextContextMenuBuilder? contextMenuBuilder,
  38. bool useNativeContextMenu = false,
  39. bool? isCollapsed,
  40. TextInputType? keyboardType,
  41. TextInputAction? textInputAction,
  42. Clip clipBehavior = Clip.hardEdge,
  43. bool autofocus = false,
  44. bool filled = false,
})

Implementation

const AutoComplete({
  super.key,
  required this.suggestions,
  required this.onChanged,
  this.initialValue,
  this.controller,
  this.border = true,
  this.enabled = true,
  this.readOnly = false,
  this.inputFormatters = const [],
  this.placeholder,
  this.onAcceptSuggestion,
  this.focusNode,
  this.popoverAlignment,
  this.popoverAnchorAlignment,
  this.popoverWidthConstraint,
  this.popoverConstraints,
  this.leading,
  this.trailing,
  this.padding,
  this.onSubmitted,
  this.onEditingComplete,
  this.onTap,
  this.obscureText = false,
  this.obscuringCharacter = '•',
  this.maxLength,
  this.maxLengthEnforcement,
  this.maxLines,
  this.minLines,
  this.borderRadius,
  this.textAlign = TextAlign.start,
  this.expands = false,
  this.textAlignVertical,
  this.undoController,
  this.autofillHints,
  this.onTapOutside,
  this.style,
  this.contextMenuBuilder,
  this.useNativeContextMenu = false,
  this.isCollapsed,
  this.keyboardType,
  this.textInputAction,
  this.clipBehavior = Clip.hardEdge,
  this.autofocus = false,
  this.filled = false,
});