transferTo abstract method
Transfers the content of the file to the specified OutputStream.
This method is ideal for saving uploaded files directly to disk, cloud storage, or piping them to another output stream without fully loading them into memory.
Example:
final output = File('/tmp/${file.getOriginalFilename()}').openWrite();
await file.transferTo(output);
The operation is asynchronous and completes when all bytes have been written.
Implementation
Future<void> transferTo(OutputStream outputStream);