of method

List<(int, MatrixApp)> of(
  1. List<MatrixApp> apps
)

The apps of apps, the apps of the matrix, that the run checks, each with its position in the matrix, from 0, which it keeps when only some are checked.

Implementation

List<(int, MatrixApp)> of(List<MatrixApp> apps) {
  final only = this.only;
  final selected = [
    for (final (index, app) in apps.indexed)
      if ((only == null || only.contains(app.name)) &&
          (!everyModule ||
              (app.everyModuleWith != null && app.modes.isEmpty)))
        (index, app),
  ];
  return shard?.of(selected) ?? selected;
}