getThemeGalleries method

Future<Iterable<ThemeGallery>> getThemeGalleries(
  1. int id
)

Gets the theme galleries of the given theme

Implementation

Future<Iterable<ThemeGallery>> getThemeGalleries(int id) async {
  final response = await _get('/api/theme/$id/gallery');

  return response.data.keys
      .map<ThemeGallery>((name) => ThemeGallery(name: name, gallery: Gallery.fromJson(response.data[name])));
}