Collection class final
Stage 4 of the pipeline: the contributions of every module, of the variants that apply, and of the templates of the present roles.
Validation, the checks of the machine and the choices of the roles take the collection as stage 4 makes it, where a contribution with conditions on what roles chose applies as any other. Rendering takes it decided by the choices (decide).
Constructors
-
Collection(List<
Collected> all, {List<SmfIssue> issues = const []}) -
Creates the collection.
const
Properties
-
all
→ List<
Collected> -
All contributions, in the order of the modules, then of the role
templates in the order of the present roles; each module's variant
comes after the module's own contributions.
final
-
applying
→ Iterable<
Collected> -
The contributions that apply in the app.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
issues
→ List<
SmfIssue> -
A problem for every module or template that failed to contribute.
final
-
roleData
→ List<
RoleData< Object> > -
The data of all roles that applies, in the order of the modules.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyingOf<
T extends Contribution> () → Iterable< Collected> -
The contributions of type
Tthat apply. -
decide(
Map< Role< choices, Set<Object> , Object?>Role< presentRoles) → CollectionObject> > -
This collection once the roles have chosen: a contribution with
conditions on what roles chose (
Contribution.whenChosen) applies only if it applies by the roles and each condition holds in an app with thepresentRoles, whose roles made thechoices. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ofModule(
ModuleId id) → List< Collected> -
The contributions of the module
id, its variant's included. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited