getModuleList method
Implementation
@override
Future<List<ModDescriptor>> getModuleList(List<String> moduleClasses) {
// Just a sanity check to make sure the logic is correct.
for (var modClass in moduleClasses) {
if (!env.allFactories.containsKey(modClass)) {
throw AssertionError('Unable to find $modClass in module factories');
}
}
final modDescriptors = env.moduleDescriptors;
return Future<List<ModDescriptor>>.delayed(
Duration.zero, () => modDescriptors);
}