finalize method

  1. @override
ByteStream finalize()
override

Freezes all mutable fields and returns a single-subscription ByteStream that emits the data being written to sink.

Implementation

@override
ByteStream finalize() {
  super.finalize();
  return ByteStream(_controller.stream);
}