detachLifecycle method
Detaches a RaiiLifecycle from this container without disposing it.
Unlike unregisterLifecycle, this method only removes the lifecycle from this container's management — it does not dispose the lifecycle. The lifecycle remains mounted and can be registered with a different owner.
This is used internally by take to move a lifecycle between owners without interrupting its mounted state.
Implementation
@override
@mustCallSuper
void detachLifecycle(RaiiLifecycle lifecycle) {
_pendingLifecycles.remove(lifecycle);
_raiiManager.detachLifecycle(lifecycle);
}