discontinuedPackage windows_foundation has been discontinued.

detach method

void detach()
inherited

Detaches the object from the Finalizer.

Call this method only if you want to manually manage the lifetime of the object.

Implementation

void detach() => _finalizer.detach(this);