FAutocompleteController constructor
FAutocompleteController({
- required TickerProvider vsync,
- String? text,
- List<
String> suggestions = const [], - 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),
);
},
);