Resolver class

Resolver resolves imports with respect to a given environment.

Implementers

Constructors

Resolver({String? packagesPath, String? sdkRoot})

Properties

failed List<String>
final
hashCode int
The hash code for this object.
no setterinherited
packagePath String?
final
packagesPath String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkRoot String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String scriptUri) String?
Returns the absolute path wrt. to the given environment or null, if the import could not be resolved.
Returns a canonicalized path, or null if the path cannot be resolved.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create({String? packagesPath, String? packagePath, String? sdkRoot}) Future<Resolver>