FTypeaheadController constructor

FTypeaheadController({
  1. required FTypeaheadControllerTextStyles textStyles,
  2. List<String> suggestions = const [],
  3. String? text,
})

Creates a FTypeaheadController with an optional initial text and completion.

Implementation

FTypeaheadController({
  required FTypeaheadControllerTextStyles textStyles,
  List<String> suggestions = const [],
  super.text,
}) : _textStyles = textStyles,
     _suggestions = suggestions {
  findCompletion();
}