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 faderPageSpecifications = parameters.actionSpecifications;
if (faderPageSpecifications.shouldCreatePageDialogOrWorkflow()) {
var memberId = member.documentID;
List<NewAppTask> tasks = [];
tasks.add(() async {
print("Fader Page");
await FaderPageBuilder(
uniqueId,
faderComponentIdentifier,
faderPageId,
app,
memberId,
homeMenuProvider(),
appBarProvider(),
leftDrawerProvider(),
rightDrawerProvider(),
).create();
});
return tasks;
}
} else {
throw Exception('Unexpected class for parameters: $parameters');
}
return null;
}