addSystems method
AppBuilder
addSystems(
- ScheduleLabel schedule,
- List<
SystemDescriptor> descriptors, { - RunCondition? runIf,
- SystemSet? inSet,
- bool chained = false,
Registers descriptors in schedule.
chained runs them in list order.
Implementation
AppBuilder addSystems(
ScheduleLabel schedule,
List<SystemDescriptor> descriptors, {
RunCondition? runIf,
SystemSet? inSet,
bool chained = false,
}) {
for (var i = 0; i < descriptors.length; i++) {
addSystem(
descriptors[i],
schedule: schedule,
after: chained && i > 0
? <SystemDescriptor>[descriptors[i - 1]]
: const <SystemDescriptor>[],
runIf: runIf,
inSet: inSet,
);
}
return this;
}