close method Null safety

void close()

Close the query and free resources.

Implementation

void close() {
  if (!_closed) {
    _closed = true;
    var err = 0;
    if (_cFinalizer != nullptr) {
      err = C.dartc_detach_finalizer(_cFinalizer, this);
    }
    checkObx(C.query_close(_cQuery));
    checkObx(err);
  }
}