Write the content of stream to this file, creating the parent directory if missing. See streamToFile.
stream
Future<File> writeStream(Stream<List<int>> stream) => streamToFile(stream, this);