init method

dynamic init()

Implementation

init() {
  Apis.apis().getRegistryApi().addInternalComponents('eliud_core_main', [
    "apps",
    "appBars",
    "dialogs",
    "drawers",
    "gridViews",
    "homeMenus",
    "members",
    "memberPublicInfos",
    "menuDefs",
    "pages",
  ]);

  Apis.apis()
      .getRegistryApi()
      .addComponentSpec('eliud_core_main', 'core', []);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'appBars', ({String? appId}) => appBarRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'dialogs', ({String? appId}) => dialogRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'drawers', ({String? appId}) => drawerRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'gridViews', ({String? appId}) => gridViewRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'homeMenus', ({String? appId}) => homeMenuRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository(
      'eliud_core_main',
      'memberMediums',
      ({String? appId}) => memberMediumRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'menuDefs', ({String? appId}) => menuDefRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository('eliud_core_main',
      'pages', ({String? appId}) => pageRepository(appId: appId)!);
  Apis.apis().getRegistryApi().registerRetrieveRepository(
      'eliud_core_main',
      'platformMediums',
      ({String? appId}) => platformMediumRepository(appId: appId)!);
}