fetchVariables method

Future<Map<String, dynamic>> fetchVariables()

Fetches all variables from the Figma file.

Returns the raw variable data from the API. Throws an exception if the variables cannot be fetched.

Implementation

Future<Map<String, dynamic>> fetchVariables() async {
  final variablesUrl = '$_baseUrl/files/$_fileId/variables/local';
  return _makeRequest(variablesUrl);
}