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 ActionSpecificationParametersBase) {
var memberDashboardDialogSpecifications = parameters.actionSpecifications;
if (memberDashboardDialogSpecifications
.shouldCreatePageDialogOrWorkflow()) {
var tasks = <NewAppTask>[];
tasks.add(() async {
print('member dashboard');
await MemberDashboardDialogBuilder(
uniqueId, app, memberDashboardDialogId)
.create();
});
return tasks;
}
} else {
throw Exception('Unexpected class for parameters: $parameters');
}
return null;
}