write method
Writes stream
to the file starting at offset
.
Returns a SftpFileWriter that can be used to control the write operation or wait for it to complete.
Implementation
SftpFileWriter write(
Stream<Uint8List> stream, {
int offset = 0,
void Function(int total)? onProgress,
}) {
return SftpFileWriter(this, stream, offset, onProgress);
}