AutocompleteResource class final
The NuGet Autocomplete resource, used to retrieve package IDs and versions that match a query.
See also: https://learn.microsoft.com/nuget/api/search-autocomplete-service-resource
- Inheritance
-
- Object
- NuGetResource
- AutocompleteResource
Constructors
- AutocompleteResource({Client? httpClient, required Uri resourceUri})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
The underlying HTTP client used to make requests.
finalinherited
- resourceUri → Uri
-
The URI of the NuGet resource.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
autocompletePackageIds(
String? query, {bool includePrerelease = false, bool includeSemVer2 = true, int? skip, int? take}) → Future< AutocompletePackageIdsResponse> -
Retrieves the package IDs that match the
query
. -
autocompletePackageVersions(
String packageId, {bool includePrerelease = false, bool includeSemVer2 = true}) → Future< List< String> > -
Retrieves the package versions for the
packageId
. -
close(
) → void -
Closes the underlying HTTP client.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited