setAttr method

void setAttr(
  1. TinkWidgetAttribute attr,
  2. TinkAttributeEvent current
)

Called when the given attribute has been given a new value. This assumes the attribute can/should be directly set in the args passed to the widget

Implementation

void setAttr(TinkWidgetAttribute attr, TinkAttributeEvent current) {
  rerender(() => args[attr.id.name] = current.data);
}