write method

SftpFileWriter write(
  1. Stream<Uint8List> stream, {
  2. int offset = 0,
  3. void onProgress(
    1. int total
    )?,
})

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);
}