__SetValue
Builtins · internal core builtin · accessible from
Bootstraponly
Overloads
ObjectType? __SetValue(String id, ObjectType value)
Sets the Value of the entity with the given id.
Parameters
String id— The id of the entity.ObjectType value— The new Value.
Returns
ObjectType? — The new Value, or null if the entity does not exist.
Errors
A runtime error if a dynamic entity would become a Value of a non-dynamic entity. A runtime type error if id is not a String.
ObjectType? __SetValue(Entity(Base)? entity, ObjectType value)
Sets the Value of the given entity.
Parameters
Entity(Base)? entity— The entity to set the Value of.ObjectType value— The new Value.
Returns
ObjectType? — The new Value, or null if entity is null.
Errors
A runtime error if a dynamic entity would become a Value of a non-dynamic entity. A runtime type error if entity is not an Entity.