SidekickPackage class

The package that contains the generated sidekick cli code

Inheritance

Constructors

SidekickPackage(Directory root, String name)

Properties

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

Methods

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

fromDirectory(Directory directory) SidekickPackage?
Returns DartPackage if a directory fulfils the requirements of a Dart/Flutter package
override