TemplateModule class

An optional module the mono-repo template can generate.

Each one maps to a boolean brick variable of the same key; the brick uses it to include or skip a whole package directory and the code that wires it into the app shell.

Constructors

TemplateModule({required String key, required String label, required String description, required bool defaultValue, List<String> impliedBy = const []})
const

Properties

defaultValue bool
Whether the module is pre-selected.
final
description String
One line explaining what the user gets.
final
flag String
CLI flag: --network / --no-network.
no setter
hashCode int
The hash code for this object.
no setterinherited
impliedBy List<String>
Modules that cannot compile without this one.
final
key String
Brick variable name, e.g. network.
final
label String
Short name shown in the picker.
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited