Node class
A generic node in the document.
- Annotations
-
- @JsonSerializable()
- @CopyWith()
Constructors
Properties
-
componentPropertyReferences
→ Map<
String, String> ? -
A mapping of a layer's property to component property name of component
properties attached to this node. The component property name can be used
to look up more information on the corresponding component's or component
set's componentPropertyDefinitions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A string uniquely identifying this node within the document.
final
- name → String?
-
The name given to the node by the user in the tool.
final
- pluginData → dynamic
-
Data written by plugins that is visible only to the plugin that wrote
it. Requires the
pluginData
to include the ID of the plugin.final -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- rotation → double?
-
The rotation of the node, if not 0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Data written by plugins that is visible to all plugins. Requires the
pluginData
parameter to include the string "shared".final - stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - type → String?
-
The type of the node. This is usually the same as the Node subtype classes
(e.g.
Frame
,Component
etc.), but can be different in the case of foreign nodes.final - visible → bool
-
Whether or not the node is visible on the canvas.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited