PackageUri class
A parsed package: import URI: package:<package>/<libPath>.
Example: package:foo/src/bar.dart → package = foo,
libPath = src/bar.dart (relative to the package's lib/ directory).
Constructors
- PackageUri(String package, String libPath)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- libPath → String
-
final
- moduleId → String
-
The canonical module id used when the resolved source is loaded into the
VM (kept identical to the original
package:import so the resolver matches it).no setter - package → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
tryParse(
String importPath) → PackageUri? -
Parses a
package:foo/bar.dartimportPath(quotes tolerated), ornullif it is not apackage:URI.