updateExistingFile method

  1. @override
Future<DirectusFile> updateExistingFile({
  1. required List<int> fileBytes,
  2. required String fileId,
  3. required String filename,
  4. String? contentType,
})
override

Implementation

@override
Future<DirectusFile> updateExistingFile(
    {required List<int> fileBytes,
    required String fileId,
    required String filename,
    String? contentType}) {
  addCalledFunction(named: "updateExistingFile");
  addReceivedObject(fileBytes, name: "fileBytes");
  addReceivedObject(fileId, name: "fileId");
  addReceivedObject(filename, name: "filename");
  addReceivedObject(contentType, name: "contentType");
  return Future.value(popNextReturnedObject());
}