reattach method

void reattach({
  1. Pointer<N>? newPtr,
})

Implementation

void reattach({ffi.Pointer<N>? newPtr}) {
  if (newPtr != null) this.ptr = newPtr;
  finalizer.detach(this);
  finalizer.attach(this, ptr.cast<ffi.Void>(), detach: this);
}