FigmaVariableMode class

Represents a mode within a variable collection.

A mode defines a specific state or theme (e.g., light mode, dark mode) where variables can have different values. This allows for maintaining multiple sets of values for the same variables.

Constructors

FigmaVariableMode({required String modeId, required String name})
Creates a new FigmaVariableMode instance.
FigmaVariableMode.fromJson(Map<String, dynamic> json)
Creates a FigmaVariableMode from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
modeId String
The unique identifier of the mode.
final
name String
The human-readable name of the mode (e.g., "Light", "Dark").
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, dynamic>
Converts the mode to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited