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,
})

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,
});