Instance class
Inheritance
Available Extensions
Annotations
@JsonSerializable()
@CopyWith()
Constructors
Instance ({required String id , required bool visible , required bool locked , required List <Paint > fills , required List <Paint > strokes , required List <ExportSetting > exportSettings , required List <Node ? > ? children , required double opacity , required LayoutPositioning layoutPositioning , required bool itemReverseZIndex , required bool strokesIncludedInLayout , required CounterAxisSizingMode counterAxisSizingMode , required double horizontalPadding , required double verticalPadding , required double itemSpacing , required List <LayoutGrid > layoutGrids , required OverflowDirection overflowDirection , required List <Effect > effects , required bool isMask , required bool isMaskOutline , required CounterAxisAlignItems counterAxisAlignItems , required PrimaryAxisAlignItems primaryAxisAlignItems , required PrimaryAxisSizingMode primaryAxisSizingMode , required double paddingBottom , required double paddingLeft , required double paddingRight , required double paddingTop , required Vector2D ? size , required bool preserveRatio , required double layoutGrow , Map <StyleTypeKey , String > ? styles , Map <String , String > ? componentPropertyReferences , SizeRectangle ? absoluteBoundingBox , SizeRectangle ? absoluteRenderBounds , double ? rotation , String ? name , dynamic pluginData , dynamic sharedPluginData , String ? type , double ? strokeWeight , StrokeAlign ? strokeAlign , double ? cornerRadius , List <double > ? rectangleCornerRadii , BlendMode ? blendMode , LayoutConstraint ? constraints , LayoutAlign ? layoutAlign , String ? transitionNodeID , double ? transitionDuration , List <List <double > > ? relativeTransform , bool ? clipsContent , LayoutMode ? layoutMode , StrokeWeights ? individualStrokeWeights , required bool isExposedInstance , required List <String > exposedInstances , required Map <String , ComponentProperty > componentProperties , String ? componentId , required Map <String , ComponentPropertyDefinition > componentPropertyDefinitions })
Instance.fromJson (Map <String , dynamic > json )
factory
Properties
absoluteBoundingBox
→ SizeRectangle ?
Bounding box of the node in absolute space coordinates.
final inherited
absoluteRenderBounds
→ SizeRectangle ?
The bounds of the rendered node in the file in absolute space coordinates.
final inherited
blendMode
→ BlendMode ?
How this node blends with nodes behind it in the scene.
final inherited
children
→ List <Node ? > ?
An array of nodes that are direct children of this node.
final inherited
clipsContent
→ bool ?
Whether or not this node clip content outside of its bounds.
final inherited
componentId
→ String ?
ID of component that this instance came from, refers to components
table.
final
componentProperties
→ Map <String , ComponentProperty >
A mapping of name to ComponentProperty for all component properties on
this instance. Each property has a type, value, and other optional values.
final
componentPropertyDefinitions
→ Map <String , ComponentPropertyDefinition >
final
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 inherited
constraints
→ LayoutConstraint ?
Horizontal and vertical layout constraints for node.
final inherited
cornerRadius
→ double ?
Radius of each corner of the frame if a single radius is set for all corners.
final inherited
counterAxisAlignItems
→ CounterAxisAlignItems
Determines how the auto-layout frame’s children should be aligned in
the counter axis direction. This property is only applicable for
auto-layout frames.
final inherited
counterAxisSizingMode
→ CounterAxisSizingMode
Whether the counter axis has a fixed length (determined by the user)
or an automatic length (determined by the layout engine). This property
is only applicable for auto-layout frames.
final inherited
effects
→ List <Effect >
An array of effects attached to this node.
final inherited
exportSettings
→ List <ExportSetting >
An array of export settings representing images to export from node.
final inherited
exposedInstances
→ List <String >
IDs of instances that have been exposed to this node's level
final
fills
→ List <Paint >
An array of fill paints applied to the node.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
horizontalPadding
→ double
The horizontal padding between the borders of the frame and its children.
This property is only applicable for auto-layout frames.
final inherited
id
→ String
A string uniquely identifying this node within the document.
final inherited
individualStrokeWeights
→ StrokeWeights ?
The weight of strokes on the node per side, if they vary.
final inherited
isExposedInstance
→ bool
If true, this node has been marked as exposed to its containing component or component set
final
isMask
→ bool
Does this node mask sibling nodes in front of it?
final inherited
isMaskOutline
→ bool
Does this mask ignore fill style (like gradients) and effects?
final inherited
itemReverseZIndex
→ bool
Determines the canvas stacking order of layers in this frame. When true,
the first layer will be draw on top. This property is only applicable
for auto-layout frames.
final inherited
itemSpacing
→ double
The distance between children of the frame.
This property is only applicable for auto-layout frames.
final inherited
layoutAlign
→ LayoutAlign ?
How the layer is aligned inside an auto-layout frame.
This property is only provided for direct children
of auto-layout frames.
final inherited
layoutGrids
→ List <LayoutGrid >
An array of layout grids attached to this node. Group nodes do not
have this attribute.
final inherited
layoutGrow
→ double
This property is applicable only for direct children of auto-layout frames,
ignored otherwise. Determines whether a layer should stretch along the parent’s
primary axis. A 0
corresponds to a fixed size and 1
corresponds to stretch.
final inherited
layoutMode
→ LayoutMode ?
Whether this layer uses auto-layout to position its children.
final inherited
layoutPositioning
→ LayoutPositioning
Determines whether a layer's size and position should be determined by
auto-layout settings or manually adjustable.
final inherited
locked
→ bool
If true, layer is locked and cannot be edited.
final inherited
name
→ String ?
The name given to the node by the user in the tool.
final inherited
opacity
→ double
Opacity of the node.
final inherited
overflowDirection
→ OverflowDirection
Defines the scrolling behavior of the frame, if there exist contents
outside of the frame boundaries. The frame can either scroll vertically,
horizontally, or in both directions to the extents of the content
contained within it. This behavior can be observed in a prototype.
final inherited
paddingBottom
→ double
The padding betweeen the bottom border of the frame and its children.
This property is only applicable for auto-layout frames.
final inherited
paddingLeft
→ double
The padding betweeen the left border of the frame and its children.
This property is only applicable for auto-layout frames.
final inherited
paddingRight
→ double
The padding betweeen the right border of the frame and its children.
This property is only applicable for auto-layout frames.
final inherited
paddingTop
→ double
The padding betweeen the top border of the frame and its children.
This property is only applicable for auto-layout frames.
final inherited
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 inherited
preserveRatio
→ bool
Keep height and width constrained to same ratio.
final inherited
primaryAxisAlignItems
→ PrimaryAxisAlignItems
Determines how the auto-layout frame’s children should be aligned in
the primary axis direction. This property is only applicable for
auto-layout frames.
final inherited
primaryAxisSizingMode
→ PrimaryAxisSizingMode
Whether the primary axis has a fixed length (determined by the user) or
an automatic length (determined by the layout engine). This property is
only applicable for auto-layout frames.
final inherited
props
→ List <Object ? >
The list of properties that will be used to determine whether
two instances are equal.
no setter override
rectangleCornerRadii
→ List <double > ?
Array of length 4 of the radius of each corner of the frame,
starting in the top left and proceeding clockwise.
final inherited
relativeTransform
→ List <List <double > > ?
The top two rows of a matrix that represents the 2D transform of this
node relative to its parent. The bottom row of the matrix is implicitly
always (0, 0, 1). Use to transform coordinates in geometry. Only present
if geometry=paths
is passed.
final inherited
rotation
→ double ?
The rotation of the node, if not 0.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sharedPluginData
→ dynamic
Data written by plugins that is visible to all plugins. Requires the
pluginData
parameter to include the string "shared".
final inherited
size
→ Vector2D ?
Width and height of element. This is different from the width and height
of the bounding box in that the absolute bounding box represents the
element after scaling and rotation. Only present if geometry=paths
is passed.
final inherited
stringify
→ bool ?
If set to true
, the toString method will be overridden to output
this instance's props .
no setter inherited
strokeAlign
→ StrokeAlign ?
Position of stroke relative to vector outline, as a string enum.
final inherited
strokes
→ List <Paint >
An array of stroke paints applied to the node.
final inherited
strokesIncludedInLayout
→ bool
Determines whether strokes are included in layout calculations. When true,
auto-layout frames behave like css "box-sizing: border-box". This property
is only applicable for auto-layout frames.
final inherited
strokeWeight
→ double ?
The weight of strokes on the node.
final inherited
styles
→ Map <StyleTypeKey , String > ?
A mapping of a StyleType to style ID (see Style ) of styles present on
this node. The style ID can be used to look up more information about the
style in the top-level styles field.
final inherited
transitionDuration
→ double ?
The duration of the prototyping transition on this node (in milliseconds).
final inherited
transitionNodeID
→ String ?
Node ID of node to transition to in prototyping.
final inherited
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 inherited
verticalPadding
→ double
The vertical padding between the borders of the frame and its children.
This property is only applicable for auto-layout frames.
final inherited
visible
→ bool
Whether or not the node is visible on the canvas.
final inherited