PackageConfigProvider class
Web no-op stand-in for PackageConfigProvider (resolves nothing — there is
no local pub cache / .dart_tool/package_config.json on the web).
- Inheritance
-
- Object
- NoopPackageProvider
- PackageConfigProvider
Constructors
- PackageConfigProvider({String? projectDir, bool runPubGetIfMissing = false})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
availablePackages(
) → FutureOr< Set< String> > -
The set of package names this provider can serve (e.g. from a project's
pubspec/package-config), used to pre-provision imports. May be empty if the provider resolves lazily.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolvePackage(
String pkg, String libPath) → FutureOr< PackageSource?> -
Resolves the source for
package:[pkg]/[libPath], ornullif this provider can't serve it.inherited -
resolvePackageUri(
PackageUri uri) → FutureOr< PackageSource?> -
Resolves a full
package:importuri, ornull.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited