FigmaVariableCollection class
Represents a collection of related Figma variables.
A variable collection groups related variables together and defines the modes (e.g., light/dark) in which these variables can have different values. This is typically used to organize design tokens in a design system.
Constructors
-
FigmaVariableCollection({required String id, required String name, required List<
FigmaVariableMode> modes, required List<String> variableIds, required String defaultModeId}) - Creates a new FigmaVariableCollection instance.
-
FigmaVariableCollection.fromJson(Map<
String, dynamic> json) -
Creates a FigmaVariableCollection from a JSON map.
factory
Properties
- defaultModeId → String
-
The ID of the default mode for this collection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier of the collection.
final
-
modes
→ List<
FigmaVariableMode> -
The list of modes (e.g., light/dark) supported by this collection.
final
- name → String
-
The human-readable name of the collection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
variableIds
→ List<
String> -
The list of variable IDs that belong to this collection.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the collection to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited