DiscoveredPackage class
Metadata and structure for a discovered Dart/Flutter package within the project.
Constructors
-
DiscoveredPackage({required String name, required String version, required bool isFlutter, required String packagePath, required String absolutePath, Map<
String, String> dependencies = const {}, Map<String, String> devDependencies = const {}, List<String> sourceFiles = const [], List<String> testFiles = const [], List<String> docFiles = const [], List<String> reportFiles = const []}) -
const
Properties
- absolutePath → String
-
Absolute directory path.
final
-
dependencies
→ Map<
String, String> -
Declared regular dependencies mapped to version constraints.
final
-
devDependencies
→ Map<
String, String> -
Declared dev dependencies mapped to version constraints.
final
-
docFiles
→ List<
String> -
Relative documentation file paths.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFlutter → bool
-
Whether this package is a Flutter package/plugin vs pure Dart.
final
- name → String
-
Package name (from pubspec.yaml
name).final - packagePath → String
-
Relative directory path from project root (e.g. "packages/my_pkg" or ".").
final
-
reportFiles
→ List<
String> -
Relative report file paths.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sourceFiles
→ List<
String> -
Relative source file paths under lib/.
final
-
testFiles
→ List<
String> -
Relative test file paths under test/.
final
- version → String
-
Package version string (from pubspec.yaml
version).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited