setDropdownValue method

void setDropdownValue(
  1. 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));
  }
}