isSettableSuitable static method

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

Implementation

static bool isSettableSuitable(
    IotWidgetElement selectedIotWidgetElement, Property property) {
  // if widget settable is false, it can also received resource with settable true
  // if widget settable is true, it can't receive resource with settable false, only true
  return selectedIotWidgetElement.settable == false ||
      selectedIotWidgetElement.settable == property.settable;
}