FigmaVariablesFetcher class
A service for fetching and processing Figma variables.
This service provides high-level functionality to:
- Fetch variables from Figma
- Process and categorize variables
- Generate theme files from variables
- Handle variable collections and modes
Requires a valid Figma access token and file ID.
Constructors
- FigmaVariablesFetcher(String _figmaToken, String _fileId)
- Creates a new FigmaVariablesFetcher instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchVariables(
) → Future< Map< String, dynamic> > - Fetches all variables from the Figma file.
-
generateThemeFiles(
String outputDirectory) → Future< void> - Generates theme files from Figma variables.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited