setDropdownValue method
void
setDropdownValue(
- dynamic data
Implementation
void setDropdownValue(dynamic data) {
final existingPropertyIndex = properties.indexWhere(
(element) => element.property == NodeProperties.dropdownValue);
if (existingPropertyIndex >= 0) {
properties[existingPropertyIndex] =
DropDownValueProperty(dropdownValue: data);
} else {
properties.add(DropDownValueProperty(dropdownValue: data));
}
}