FigmaService class

Constructors

FigmaService.new()

Properties

dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
logger LoggerService
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

downloadImages({required String parentDirectory, required Map<String, String> imageUrls, required String imageFormat, required String sectionName, required List<Map<String, String>> assets, required double scale, required bool forceDownload}) Future<void>
Fetches images from image URLs
fetchFigmaFile({required String fileId, required String token}) Future<Map<String, dynamic>>
Fetches Figma file data
fetchImageUrls({required String fileId, required String token, required List<String> nodeIds, required String imageFormat, required double scale}) Future<Map<String, String>>
Fetches image URLs for a given scale
findAppIcons(Map<String, dynamic> data, List<String> sectionsToDownload) Map<String, List<Map<String, String>>>
Finds sections matching APP_ASSET_<sectionName> (or all if sectionsToDownload is empty)
findAppImages(Map<String, dynamic> data, List<String> sectionsToDownload) Map<String, List<Map<String, String>>>
Finds sections matching APP_ASSET_<sectionName> (or all if sectionsToDownload is empty)
formatScale(double scale) String
getVariables({required String fileId, required String token, required Map<String, String> collectionOverrides, required Map<String, String> variableOverrides, required Set<String> excludedCollections, required bool includeRemote, String? jsonOutput}) Future<(FigmaResponse, Map<String, dynamic>)>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseJsonFromApi(dynamic apiResponse, {required Map<String, String> collectionOverrides, required Map<String, String> variableOverrides, required Set<String> excludedCollections, required bool includeRemote}) FigmaResponse
toString() String
A string representation of this object.
inherited

Operators

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