GizmoPrimitive class sealed

One drawable unit of a gizmo. Subtypes carry their geometry parameters; the shared fields govern visibility, color, and conditional drawing.

Properties

color GizmoColor?
Overrides the theme gizmo color; null uses the theme (accent when selected).
final
hashCode int
The hash code for this object.
no setterinherited
kind String
The JSON tag for this primitive's kind.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visibility GizmoVisibility
final
when GizmoCondition?
Draw only while the condition holds; null always draws.
final
xray bool
Whether the primitive stays visible when occluded, once depth-aware drawing exists. The v1 painter draws everything on top.
final

Methods

fieldsToJson() Map<String, Object?>
Subtype-specific JSON fields, merged into the tagged map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) GizmoPrimitive?
Decodes one tagged primitive, or null for malformed entries and kinds this build does not know (newer manifests degrade to fewer primitives).