close method

  1. @override
void close()
override

Add a -1 to signal EOF.

Implementation

@override
void close() {
  pendingBytes.add(-1);
}