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:

Implementers
Annotations
  • @immutable

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
when → Set<Role<Object>>
Roles that must all be present for the contribution to apply.
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