setRaiiHolder method
Sets the holder for this lifecycle.
This is called internally by RaiiLifecycleAware.registerLifecycle to establish the parent-child relationship. The holder reference is used during disposal to automatically unregister.
Throws StateError if this lifecycle is already registered with a different holder. A lifecycle must be unregistered from its current holder before being registered with a new one.
Note: This is an internal API and should not be called directly by users. Use RaiiLifecycleAware.registerLifecycle instead.
Implementation
@override
void setRaiiHolder(RaiiLifecycleAware holder) {
_raiiManager.setRaiiHolder(holder);
}