AutocompleteService class

Main autocomplete service that aggregates multiple providers.

Constructors

AutocompleteService({int maxRecentInputs = 100})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCustomPrompt(PromptSuggestion suggestion) → void
Add a custom prompt suggestion.
dispose() → void
Dispose resources.
getCompletions(SuggestionContext context, {int maxResults = 15, Duration debounce = const Duration(milliseconds: 150)}) Future<List<CompletionSuggestion>>
Get completions for the current input.
getInlineCompletion(SuggestionContext context) Future<String?>
Get inline completion (ghost text) for current input.
getPromptSuggestions({PromptCategory? category, String? search, String? projectType, bool? hasGit, int limit = 10}) List<PromptSuggestion>
Get prompt suggestions based on context.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordInput(String input) → void
Record a user input for history-based completions.
recordPromptUsage(String promptText) → void
Record that a prompt suggestion was used (for ranking).
registerProvider(CompletionProvider provider) → void
Register a custom completion provider.
toString() String
A string representation of this object.
inherited
unregisterProvider(String name) → void
Unregister a completion provider.

Operators

operator ==(Object other) bool
The equality operator.
inherited