updateFile method
Update File
Update a file by its unique ID. Only users with write permissions have access to update this resource.
Implementation
Future<req.Response> updateFile(
{required String fileId, required List read, required List write}) {
final String path =
'/storage/files/{fileId}'.replaceAll(RegExp('{fileId}'), fileId);
final Map<String, dynamic> params = {
'read': read,
'write': write,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.put,
path: path, params: params, headers: headers);
}