getFileStyles method

Future<StylesResponse> getFileStyles(
  1. String key, [
  2. FigmaQuery? query
])

Retrieves all published styles from the Figma file specified by key.

Implementation

Future<StylesResponse> getFileStyles(String key, [FigmaQuery? query]) async =>
    _getFigma('/files/$key/styles', query)
        .then((data) => StylesResponse.fromJson(data));