Contribution class sealed
Something a module or a role template adds to the app.
Modules return contributions from SmfModule.contribute and its Variants, role templates from RoleTemplate.contribute. Contributions are plain data: the pipeline collects them from every selected module before it validates anything, and renders the app only after that.
The kinds of contributions are fixed, because the pipeline handles each of them:
- BrickContribution: template files;
- SocketContribution: code or values for a socket;
- RoleData: data in the language of a role, such as routes;
- PubspecContribution: dependencies and
pubspec.yamlsettings; - CodegenRequest: a request to run
build_runner; - Preflight: checks of the machine before generation;
- PostGenStep: a command to run in the generated app.
- Implementers
- Annotations
-
- @immutable
Properties
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