select method

  1. @override
List<MatrixApp> select(
  1. List<MatrixApp> apps,
  2. List<SmfModule> modules
)
override

The apps of apps, apps with every module of modules such as those of everyModuleAppsOf, that the selection takes, in their order.

Implementation

@override
List<MatrixApp> select(List<MatrixApp> apps, List<SmfModule> modules) {
  final strength = this.strength;
  if (strength == null) return apps;
  return [
    for (final index in _Covering.of(apps, modules, strength).indices)
      apps[index],
  ];
}