getFileById method

Future<File> getFileById(
  1. int id
)

Gets the file with the given id

Implementation

Future<File> getFileById(int id) async {
  final response = await _get('/api/media/file/$id');

  return File.fromJson(response.data);
}