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 feedSpecifications = parameters.actionSpecifications;
if (feedSpecifications.shouldCreatePageDialogOrWorkflow()) {
List<NewAppTask> tasks = [];
var memberId = member.documentID;
tasks.add(() async {
print("feedModel");
await FeedMenuPageBuilder(
uniqueId,
feedPageId,
app,
memberId,
homeMenuProvider(),
appBarProvider(),
leftDrawerProvider(),
rightDrawerProvider(),
).run(
feed: null,
feedIdentifier: feedIdentifier,
feedMenuComponentIdentifier: feedMenuComponentIdentifier,
feedFrontComponentIdentifier: feedFrontComponentIdentifier,
followRequestsDashboardComponentIdentifier:
followRequestsDashboardComponentIdentifier,
profileComponentIdentifier: feedProfileComponentIdentifier,
followersDashboardComponentIdentifier:
followersDashboardComponentIdentifier,
followingDashboardComponentIdentifier:
followingDashboardComponentIdentifier,
inviteDashboardComponentIdentifier:
inviteDashboardComponentIdentifier,
);
});
return tasks;
}
} else {
throw Exception('Unexpected class for parameters: $parameters');
}
return null;
}