DartPackage class

Implementers

Constructors

DartPackage(Directory root, String name)
DartPackage.flutter(Directory root, String name)

Properties

binDir Directory
The bin directory containing entrypoints for CLIs
no setter
buildDir Directory
The build directory where build outputs can be placed
no setter
hashCode int
The hash code for this object.
no setteroverride
isFlutterPackage bool
true when the package has a dependency on flutter, thus requires the flutter_tool, not pub to get dependencies
final
libDir Directory
The lib directory containing the packages source code
no setter
lockfile File
no setter
name String
The package name defined in the pubspec.yaml
final
pubspec File
no setter
root Directory
The directory the package is located on disk
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
srcDirs Set<Directory>
Set of directories containing dart source code
no setter
testDir Directory
The test directory containing unit tests
no setter
toolDir Directory
The tool directory containing helper scripts
no setter

Methods

containsPath(FileSystemEntity entity) bool
Returns true when the provided path is in context of this package
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.
override

Static Methods

fromArgResults(ArgResults argResults) DartPackage
Returns DartPackage from first argument in argResults.rest or if argResults.rest is empty from entryWorkingDirectory
fromDirectory(Directory directory) DartPackage?
Returns DartPackage if a directory fulfils the requirements of a Dart/Flutter package