FAutocompleteController constructor

FAutocompleteController({
  1. String? text,
  2. List<String> suggestions = const [],
})

Creates a FAutocompleteController with an optional initial text and suggestions.

Implementation

FAutocompleteController({super.text, super.suggestions})
  : super(
      textStyles: (context) {
        final InheritedAutocompleteStyle(:style, :variants) = .of(context);
        return (
          style.fieldStyle.contentTextStyle.resolve(variants),
          style.composingTextStyle.resolve(variants),
          style.typeaheadTextStyle.resolve(variants),
        );
      },
    );