reattach method

void reattach(
  1. Pointer<Void> ptr
)

Implementation

void reattach(ffi.Pointer<ffi.Void> ptr) {
  dispose();
  _ptr = ptr;
  if (attach) {
    finalizer.attach(this, _ptr, detach: this);
  }
}