getThemes method

Future<Iterable<Theme>> getThemes()

Gets all themes

Implementation

Future<Iterable<Theme>> getThemes() async {
  final response = await _get('/api/theme');

  return response.data['items'].map<Theme>((e) => Theme.fromJson(e));
}