getModuleList method

  1. @override
Future<List<ModDescriptor>> getModuleList(
  1. List<String> moduleClasses
)
override

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);
}