RegistryAdapter class abstract

Abstract adapter for a specific package registry.

Each registry (pub, npm, nuget, etc.) implements this interface. The resolver dispatches RegistrySource imports to the matching adapter.

Implementers

Constructors

RegistryAdapter()

Properties

defaultUrl → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
registryType → Registry
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchModule(String package, String version, {String? modulePath, ModuleEncoding encoding, String? registryUrl, Map<String, String>? headers}) → Future<ResolvedRegistryModule>
Download the package archive and extract the Ball module bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveVersion(String package, String constraint, {String? registryUrl, Map<String, String>? headers}) → Future<String>
Resolve a version constraint to the best matching concrete version.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited