NuGetResource constructor
NuGetResource({
- Client? httpClient,
- required Uri resourceUri,
Creates a new instance of the NuGetResource class.
httpClient
: The HTTP client used to make requests. Ifnull
, a new instance ofhttp.Client
is created automatically.- resourceUri: The Uri of the NuGet resource.
Implementation
NuGetResource({http.Client? httpClient, required this.resourceUri})
: httpClient = httpClient ?? http.Client();