disown method

void disown()
inherited

Gives up ownership without releasing the object.

Used where the C API transfers ownership to another object, e.g. wasm_engine_new_with_config consuming a wasm_config_t. After this the Dart object behaves as if disposed.

Implementation

void disown() {
  _finalizer.detach(this);
  _allocation.released = true;
}