NoopPackageProvider class
A PackageProvider that resolves nothing — the web-safe default so code
depending on the provider API compiles for web without pulling in dart:io.
- Implemented types
- Implementers
Constructors
- NoopPackageProvider()
-
const
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.override -
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.override -
resolvePackageUri(
PackageUri uri) → FutureOr< PackageSource?> -
Resolves a full
package:importuri, ornull.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited