ComponentSet class

A node containing a set of variants of a component.

Available Extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

ComponentSet({String? key, String? fileKey, String? nodeId, String? thumbnailUrl, String? name, String? description, DateTime? createdAt, DateTime? updatedAt, User? user, FrameInfo? containingFrame, dynamic containingPage, required Map<String, ComponentPropertyDefinition> componentPropertyDefinitions})
ComponentSet.fromJson(Map<String, dynamic> json)
factory

Properties

componentPropertyDefinitions Map<String, ComponentPropertyDefinition>
final
containingFrame FrameInfo?
Data on component's containing frame, if component resides within a frame.
final
containingPage → dynamic
Data on component's containing page, if component resides in a multi-page file.
final
createdAt DateTime?
The UTC ISO 8601 time at which the component set was created.
final
description String?
The description of the component set as entered by the publisher.
final
fileKey String?
The unique identifier of the figma file which contains the component set.
final
hashCode int
The hash code for this object.
no setterinherited
key String?
The unique identifier of the component set.
final
name String?
Name of the component set.
final
nodeId String?
Id of the component set node within the figma file.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
thumbnailUrl String?
URL link to the component set's thumbnail image.
final
updatedAt DateTime?
The UTC ISO 8601 time at which the component was updated.
final
user User?
The user who last updated the component set.
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