close method Null safety

void close()

Implementation

void close() {
  _encoder.endEncode();
  _output.close();
}