NuGetResource constructor

NuGetResource({
  1. Client? httpClient,
  2. required Uri resourceUri,
})

Creates a new instance of the NuGetResource class.

  • httpClient: The HTTP client used to make requests. If null, a new instance of http.Client is created automatically.
  • resourceUri: The Uri of the NuGet resource.

Implementation

NuGetResource({http.Client? httpClient, required this.resourceUri})
    : httpClient = httpClient ?? http.Client();