InlineSuggestionTextField<T> constructor

const InlineSuggestionTextField<T>({
  1. Key? key,
  2. required List<FluentAutoSuggestBoxItem<T>> items,
  3. TextEditingController? controller,
  4. FocusNode? focusNode,
  5. InlineSuggestionConfig config = const InlineSuggestionConfig(),
  6. ValueChanged<String>? onChanged,
  7. ValueChanged<String>? onSubmitted,
  8. void onSuggestionAccepted(
    1. FluentAutoSuggestBoxItem<T> item
    )?,
  9. FluentAutoSuggestBoxItem<T>? suggestionMatcher(
    1. String text,
    2. List<FluentAutoSuggestBoxItem<T>> items
    )?,
  10. InputDecoration? decoration,
  11. TextStyle? style,
  12. bool enabled = true,
  13. bool autofocus = false,
  14. TextInputAction? textInputAction,
  15. TextInputType? keyboardType,
})

Implementation

const InlineSuggestionTextField({
  super.key,
  required this.items,
  this.controller,
  this.focusNode,
  this.config = const InlineSuggestionConfig(),
  this.onChanged,
  this.onSubmitted,
  this.onSuggestionAccepted,
  this.suggestionMatcher,
  this.decoration,
  this.style,
  this.enabled = true,
  this.autofocus = false,
  this.textInputAction,
  this.keyboardType,
});