Register a main class which is inherited BaseModule. The class is needed to running Module's components (ModuleScreen, ModuleService) by system. Below code should be added in a main script file by DART-IDE automatically when user build a module package.
// IIFE for register a function to create an instance of main class which is inherited BaseModule.
(() => {
System.registerModuleMainClassCreator(packageInfo => new MyModule(packageInfo))
})();
class MyModule extends BaseModule {
...
}
A function to create instance of module's main class which is inherited BaseModule.
Return true if the creator is registered successfully, otherwise false.
Generated using TypeDoc
A class of set with APIs to interact with DART-Platform's system.
1