copy method
Copies from src
to dst
until either EOF (null
) is read from src
or
an error occurs. It resolves to the number of bytes copied or rejects with
the first error encountered while copying.
Implementation
_i2.Future<_i2.num> copy(
_i4.Reader src,
_i4.Writer dst, [
_i4.IInline1? options,
]) =>
_i3.promiseToFuture(_i3.callMethod(
this,
'copy',
[
src,
dst,
options ?? _i6.undefined,
],
));