allInstancesOfType<TSubsystem extends Subsystem> method
All active subsystem instances matching type TSubsystem.
Implementation
List<TSubsystem> allInstancesOfType<TSubsystem extends Subsystem>() {
final instances = <TSubsystem>[];
for (final singleton in _singletonsByDesc.values) {
if (singleton is TSubsystem) {
instances.add(singleton);
}
}
return instances;
}