init method
dynamic
init(
- ComponentConstructor playStoreComponentConstructorDefault,
- ComponentEditorConstructor playStoreComponentEditorConstructor
Implementation
init(
ComponentConstructor playStoreComponentConstructorDefault,
ComponentEditorConstructor playStoreComponentEditorConstructor,
) {
Apis.apis()
.getRegistryApi()
.addInternalComponents('eliud_pkg_create_model', [
"playStores",
]);
Apis.apis()
.getRegistryApi()
.addDropDownSupporter("playStores", DropdownButtonComponentFactory());
Apis.apis().getRegistryApi().register(
componentName: "playStores",
componentConstructor: playStoreComponentConstructorDefault);
Apis.apis()
.getRegistryApi()
.addComponentSpec('eliud_pkg_create_model', 'create', [
ComponentSpec(
'playStores',
playStoreComponentConstructorDefault,
PlayStoreComponentSelector(),
playStoreComponentEditorConstructor,
({String? appId}) => playStoreRepository(appId: appId)!),
]);
Apis.apis().getRegistryApi().registerRetrieveRepository(
'eliud_pkg_create_model',
'playStores',
({String? appId}) => playStoreRepository(appId: appId)!);
}