GizmoSpec class

The declarative gizmo block a component schema carries, an ordered list of primitives the editor draws for components of that type.

Constructors

GizmoSpec(List<GizmoPrimitive> primitives)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
primitives → List<GizmoPrimitive>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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) → GizmoSpec?
Decodes a gizmo block, skipping malformed or unknown primitives; null when json is not a gizmo block at all.