open method Null safety

void open()

Implementation

void open() {
  if (_file != null) {
    return;
  }

  _file = File(_path).openSync();
  _position = 0;
}