abort method

Future<void> abort()

Closes the stream without committing: the target file is left as it was before this sink was created. Does nothing after close.

Implementation

Future<void> abort() async {
  if (_done) return;
  _done = true;
  _chunkLength = 0;
  await _stream.abort().toDart;
}