initModules function

Future<void> initModules({
  1. required ModuleDispatcher dispatcher,
  2. required Map<String, FactoryFunc> moduleFactories,
})

Implementation

Future<void> initModules(
    {required ModuleDispatcher dispatcher,
    required Map<String, FactoryFunc> moduleFactories}) async {
  final manager = ModuleManager(dispatcher, moduleFactories);
  await manager.start();
}