init method
Implementation
@override
void init() {
ComponentRegistry().init(
MembershipDashboardComponentConstructorDefault(),
MembershipDashboardComponentEditorConstructor(),
);
// register wizard for membership
Apis.apis().getWizardApi().register(MembershipDashboardWizard());
// Initialise repository singleton
AbstractRepositorySingleton.singleton = RepositorySingleton();
// Register mappers for extra tasks
TaskModelRegistry.registry()!.addTask(
identifier: RequestMembershipTaskModel.label,
definition: RequestMembershipTaskModel.definition,
mapper: RequestMembershipTaskModelMapper(),
createNewInstance: () => RequestMembershipTaskModel(
identifier: RequestMembershipTaskModel.label,
description: 'Request membership',
executeInstantly: true));
TaskModelRegistry.registry()!.addTask(
identifier: ApproveMembershipTaskModel.label,
definition: ApproveMembershipTaskModel.definition,
mapper: ApproveMembershipTaskModelMapper(),
createNewInstance: () => ApproveMembershipTaskModel(
identifier: ApproveMembershipTaskModel.label,
description: 'Approve membership',
executeInstantly: true));
}