getFiles method

Future<Iterable<File>> getFiles()

Gets all files

Implementation

Future<Iterable<File>> getFiles() async {
  final response = await _get('/api/media/file');

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