FigmaClient class

A client for interacting with the Figma API.

This class provides methods to fetch design tokens, components, and assets from a Figma file. It handles authentication and API requests to the Figma REST API.

Constructors

FigmaClient(String _token, String _fileId)
Creates a new FigmaClient 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

downloadImage(String url) Future<List<int>>
Downloads an image from a given URL.
getFile() Future<Map<String, dynamic>>
Fetches the entire Figma file data.
getImageUrls(List<String> ids, {String format = 'pdf', int scale = 1}) Future<Map<String, dynamic>>
Fetches image URLs for specified node IDs.
getVariables() Future<Map<String, dynamic>>
Fetches all variables from the Figma file.
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