PackageContentResource class final
The NuGet Package Content resource, used to retrieve the contents of a package.
See https://learn.microsoft.com/nuget/api/package-base-address-resource
- Inheritance
-
- Object
- NuGetResource
- PackageContentResource
Constructors
- PackageContentResource({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
-
close(
) → void -
Closes the underlying HTTP client.
inherited
-
downloadPackageContent(
String packageId, {required String version}) → Future< Uint8List> -
Returns the contents of the package content (
.nupkg
) file for the package with thepackageId
andversion
. -
downloadPackageManifest(
String packageId, {required String version}) → Future< Uint8List> -
Returns the contents of the package manifest (
.nuspec
) file for the package with thepackageId
andversion
. -
getPackageVersions(
String packageId) → Future< List< String> > -
Retrieves the all versions of the
packageId
. -
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