onRegister method

  1. @override
void onRegister()
override

Callback method when this package is being registered.

Implementation

@override
void onRegister() {
  ResearchPackage.ensureInitialized();
  CognitionPackage.ensureInitialized();

  FromJsonFactory().registerAll([
    RPAppTask(type: '', rpTask: RPTask(identifier: 'ignored')),
    RPTaskResultData()
  ]);
  AppTaskController().registerUserTaskFactory(SurveyUserTaskFactory());
}