Module class
Describes a self-contained group of generated lib/ files, the folders they
live in, the pub packages they need, and the other modules they depend on.
init resolves a set of selected Modules (expanding dependsOn), creates
the folders, writes the files, and adds the union of all packages.
Constructors
Properties
-
dependsOn
→ List<
String> -
Keys of other modules this one imports from; pulled in automatically.
final
- description → String
-
One-line explanation of what the module provides.
final
-
devPackages
→ List<
String> -
Dev dependencies added to
dev_dependencies:.final -
files
→ Map<
String, String> -
Map of
path -> file contentswritten for this module.final -
folders
→ List<
String> -
Directories (relative to the project root) created for this module.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
Stable identifier used on the command line (e.g.
config,widgets).final -
packages
→ List<
String> -
Runtime dependencies added to
dependencies:.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Human-readable title shown in prompts and
--list.final
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