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 MembershipDashboardWizardParameters) {
var membershipDashboardSpecifications =
parameters.membershipDashboardSpecifications;
if (membershipDashboardSpecifications
.shouldCreatePageDialogOrWorkflow()) {
print("Membership Dashboard");
var memberId = member.documentID;
List<NewAppTask> tasks = [];
tasks.add(() async => await MembershipDashboardPageBuilder(
uniqueId,
membershipPageId,
app,
memberId,
homeMenuProvider(),
appBarProvider(),
leftDrawerProvider(),
rightDrawerProvider(),
).run(componentIdentifier: membershipDashboardComponentIdentifier));
return tasks;
}
} else {
throw Exception('Unexpected class for parameters: $parameters');
}
return null;
}