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 == "appPolicys") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "blockings") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "blockingDashboards") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
if (id == "memberDashboards") {
return DropdownButtonComponent(
app: app,
componentId: id,
value: value,
privilegeLevel: privilegeLevel,
trigger: trigger,
optional: optional);
}
return Text("Id $id not found");
}