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, Map<String, Object?> unknown = const {}}) -
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 -
unknown
→ Map<
String, Object?> -
Keys this build of the engine does not recognize, kept verbatim so a
document written by a newer engine or an extension survives a load and
save unchanged.
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