PackageConfig class final
.dart_tool/package_config.json: every package in the resolution and
its folder, plus the Flutter SDK that resolved it.
Properties
- flutterRoot → String?
-
The Flutter SDK folder that ran pub, when it was Flutter's.
final
- flutterVersion → String?
-
That SDK's version.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
packages
→ Map<
String, ResolvedPackage> -
The resolved packages, by name.
final
- root → String
-
The folder pub resolved in, with
/between parts: the project itself, or — for a member of a pub workspace — the workspace's root. Itspubspec.lockis the one that goes with these packages.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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
read(
String projectRoot) → PackageConfig? -
The project's config, or null when pub has not run. For a member of a
pub workspace (
resolution: workspace) it is the workspace's.