create method Null safety

void create(
  1. String tarPath
)

Implementation

void create(String tarPath) {
  this.tarPath = tarPath;
  _output = OutputFileStream(tarPath);
  _encoder = TarEncoder();
  _encoder.start(_output);
}