createNew method
Widget
createNew({
- Key? key,
- required AppModel app,
- required String id,
- int? privilegeLevel,
- Map<
String, dynamic> ? parameters, - String? value,
- DropdownButtonChanged? trigger,
- bool? optional,
override
Implementation
@override
Widget createNew(
{Key? key,
required AppModel app,
required String id,
int? privilegeLevel,
Map<String, dynamic>? parameters,
String? value,
DropdownButtonChanged? trigger,
bool? optional}) {
if (id == "apps") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "appBars") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "dialogs") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "drawers") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "gridViews") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "homeMenus") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "members") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "memberPublicInfos") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "menuDefs") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "pages") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
return Text("Id $id not found");
}