getThemeFiles method

Future<Iterable<ThemeFile>> getThemeFiles(
  1. int id
)

Gets the theme files of the given theme

Implementation

Future<Iterable<ThemeFile>> getThemeFiles(int id) async {
  final response = await _get('/api/theme/$id/file');

  return response.data.keys.map<ThemeFile>((name) => ThemeFile(name: name, file: File.fromJson(response.data[name])));
}