EngineContext constructor

EngineContext(
  1. List<APIProvider>? apiProviders,
  2. VoltronBundleLoader? coreLoader,
  3. int bridgeType,
  4. bool isDevModule,
  5. IntegratedMode integratedMode,
  6. String serverHost,
  7. int groupId,
  8. VoltronThirdPartyAdapter? thirdPartyAdapter,
  9. GlobalConfigs globalConfigs,
  10. int id,
  11. TimeMonitor monitor,
  12. EngineMonitor engineMonitor,
  13. DevSupportManager devSupportManager,
  14. VoltronRenderBridgeManager? voltronRenderBridgeManager,
  15. DomHolder? domHolder,
  16. HashMap<int, RootWidgetViewModel>? rootViewModelMap,
)

Implementation

EngineContext(
  List<APIProvider>? apiProviders,
  VoltronBundleLoader? coreLoader,
  int bridgeType,
  bool isDevModule,
  IntegratedMode integratedMode,
  String serverHost,
  int groupId,
  VoltronThirdPartyAdapter? thirdPartyAdapter,
  GlobalConfigs globalConfigs,
  int id,
  TimeMonitor monitor,
  EngineMonitor engineMonitor,
  DevSupportManager devSupportManager,
  VoltronRenderBridgeManager? voltronRenderBridgeManager,
  DomHolder? domHolder,
  HashMap<int, RootWidgetViewModel>? rootViewModelMap,
)   : _globalConfigs = globalConfigs,
      _id = id,
      _isDevMode = isDevModule,
      _debugServerHost = serverHost,
      _startTimeMonitor = monitor {
  _renderContext = JSRenderContext(
    this,
    _id,
    processControllers(apiProviders),
    engineMonitor,
    isDevModule,
    voltronRenderBridgeManager,
    domHolder,
    rootViewModelMap,
  );
  if (_isDevMode) {
    _devtoolsManager = DevtoolsManager(true);
  }
  _moduleManager = ModuleManager(this, apiProviders);
  _dimensionChecker = JSDimensionChecker(globalConfigs.deviceAdapter, _moduleManager);
  _bridgeManager = VoltronBridgeManager(
    this,
    coreLoader,
    groupId,
    _id,
    thirdPartyAdapter: thirdPartyAdapter,
    bridgeType: bridgeType,
    isDevModule: _isDevMode,
    debugServerHost: _debugServerHost,
  );
  _initVfsManager();
  _devSupportManager = devSupportManager;
}