getCreateTasks method
List<NewAppTask> ?
getCreateTasks(
- String uniqueId,
- AppModel app,
- NewAppWizardParameters parameters,
- MemberModel member,
- HomeMenuProvider homeMenuProvider,
- AppBarProvider appBarProvider,
- DrawerProvider leftDrawerProvider,
- DrawerProvider rightDrawerProvider,
override
Implementation
@override
List<NewAppTask>? getCreateTasks(
String uniqueId,
AppModel app,
NewAppWizardParameters parameters,
MemberModel member,
HomeMenuProvider homeMenuProvider,
AppBarProvider appBarProvider,
DrawerProvider leftDrawerProvider,
DrawerProvider rightDrawerProvider,
) {
if (parameters is JoinActionSpecificationParameters) {
var notificationDashboardDialogSpecifications =
parameters.joinActionSpecifications;
if (notificationDashboardDialogSpecifications
.shouldCreatePageDialogOrWorkflow()) {
List<NewAppTask> tasks = [];
tasks.add(() async {
print("Notification Dashboard");
await NotificationDashboardDialogBuilder(
uniqueId, app, notificationDashboardDialogId)
.create();
});
return tasks;
}
} else {
throw Exception('Unexpected class for parameters: $parameters');
}
return null;
}