ComponentSpec class
A serialized component: a stable type name plus a typed property bag.
The type is resolved through the component codec registry at realization; the properties hold the component's typed fields.
Constructors
-
ComponentSpec(String type, {Map<
String, PropertyValue> ? properties}) -
Creates a component of the given
typewith optionalproperties.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
properties
→ Map<
String, PropertyValue> -
The component's typed fields, keyed by field name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The registered component type name (for example
mesh,directionalLight,camera).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited