FAutocompleteController constructor

FAutocompleteController({
  1. required TickerProvider vsync,
  2. String? text,
  3. List<String> suggestions = const [],
  4. FPopoverMotion popoverMotion = const FPopoverMotion(),
})

Creates a FAutocompleteController with an optional initial text and suggestions.

Implementation

FAutocompleteController({
  required TickerProvider vsync,
  super.text,
  super.suggestions,
  FPopoverMotion popoverMotion = const FPopoverMotion(),
}) : popover = FPopoverController(vsync: vsync, motion: popoverMotion),
     super(
       textStyles: (context) {
         final InheritedAutocompleteStyle(:style, :states) = InheritedAutocompleteStyle.of(context);
         return (
           style.fieldStyle.contentTextStyle.resolve(states),
           style.composingTextStyle.resolve(states),
           style.typeaheadTextStyle.resolve(states),
         );
       },
     );