AutoComplete constructor
const
AutoComplete({
- Key? key,
- required List<
String> suggestions, - required ValueChanged<
String> onChanged, - String? initialValue,
- TextEditingController? controller,
- bool border = true,
- bool enabled = true,
- bool readOnly = false,
- List<
TextInputFormatter> inputFormatters = const [], - String? placeholder,
- ValueChanged<
int> ? onAcceptSuggestion, - FocusNode? focusNode,
- AlignmentGeometry? popoverAlignment,
- AlignmentGeometry? popoverAnchorAlignment,
- PopoverConstraint? popoverWidthConstraint,
- BoxConstraints? popoverConstraints,
- Widget? leading,
- 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,
});