close method Null safety

void close()

Implementation

void close() {
  _file.closeSync();
  _fileSize = 0;
}