static/modules/modules
library
Classes
-
Module
-
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.
Properties
-
coreModule
→ Module
-
Always generated. Provides the base folder tree, entry point, go_router
setup, and a working Riverpod "home" feature so a fresh project runs
immediately. Kept independent of every other module so
--minimal still
compiles on its own.
final
-
kModules
→ Map<String, Module>
-
Optional modules keyed by CLI identifier.
final
-
kOptionalModulesOrdered
→ List<Module>
-
Optional modules in the order they are presented (prompts and
--list).
final
Functions
-
resolveModules(Iterable<String> selectedKeys)
→ List<Module>
-
Expands
selectedKeys with their transitive dependencies, always prepends
core, and returns modules in install order (dependencies before dependents,
no duplicates). Unknown keys are ignored here (validate separately).
-
unknownModuleKeys(Iterable<String> keys)
→ List<String>
-
Keys the user passed that don't match any known module.