PubDevProvider constructor
PubDevProvider({})
Implementation
PubDevProvider({
this.host = 'https://pub.dev',
http.Client? client,
PackageCache? cache,
Map<String, VersionConstraint>? constraints,
String? pubspecYaml,
this.rewriteUrl,
}) : cache = cache ?? MemoryPackageCache(),
_client = client ?? http.Client(),
_ownsClient = client == null,
_constraints = {
if (pubspecYaml != null) ..._parsePubspecConstraints(pubspecYaml),
...?constraints,
};