FTypeaheadController constructor

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

Creates a FTypeaheadController with an optional initial text and completion.

Implementation

FTypeaheadController({
  required (TextStyle textStyle, TextStyle composingStyle, TextStyle completionStyle) Function(BuildContext)
  textStyles,
  List<String> suggestions = const [],
  super.text,
}) : _textStyles = textStyles,
     _suggestions = suggestions {
  findCompletion();
}