finalize method
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(_streamController.stream);
}