isVendorDeviceValid static method

bool isVendorDeviceValid(
  1. IotWidgetElement selectedIotWidgetElement,
  2. Property property
)

Implementation

static bool isVendorDeviceValid(
    IotWidgetElement selectedIotWidgetElement, Property property) {
  if (selectedIotWidgetElement.acceptedParameters
      .contains("${property.parentId}/${property.id}")) {
    return true;
  }

  return false;
}