addSystem method

  1. @override
AppBuilder addSystem(
  1. SystemDescriptor descriptor, {
  2. required ScheduleLabel schedule,
  3. List<SystemDescriptor> after = const <SystemDescriptor>[],
  4. List<SystemDescriptor> before = const <SystemDescriptor>[],
  5. RunCondition? runIf,
  6. SystemSet? inSet,
})
override

Registers descriptor in schedule.

runIf can skip a run. inSet places the system in a SystemSet.

Implementation

@override
AppBuilder addSystem(
  SystemDescriptor descriptor, {
  required ScheduleLabel schedule,
  List<SystemDescriptor> after = const <SystemDescriptor>[],
  List<SystemDescriptor> before = const <SystemDescriptor>[],
  RunCondition? runIf,
  SystemSet? inSet,
}) {
  return addSystemAdapter(
    descriptor.buildAdapter(),
    schedule: schedule,
    label: descriptor.ref.label,
    after: <SystemLabel>[for (final d in after) d.ref.label],
    before: <SystemLabel>[for (final d in before) d.ref.label],
    runIf: runIf,
    inSet: inSet,
  );
}