copyTo method

Future<int> copyTo(
  1. AsyncWrite dst, {
  2. int bufferSize = 64 * 1024,
  3. int? limit,
})

Copies this source into dst, optionally up to limit bytes.

Implementation

Future<int> copyTo(
  AsyncWrite dst, {
  int bufferSize = 64 * 1024,
  int? limit,
}) => _copy(this, dst, bufferSize: bufferSize, limit: limit);