setAttributeValue method

void setAttributeValue({
  1. required String attributeName,
  2. dynamic attributeValue,
  3. AttributeType attributeType = .variant,
})

Sets the value of an existing attribute.

Object type must match the type of the attribute. Use a string for untyped attributes.

Parameters:

  • attributeName — The name of the attribute to update.
  • attributeValue — The value to set for the attribute.