RetainedStateProvider
Provides a RetainedStateRegistry for the child content based on the specified key. Before the provided registry is disposed, it calls RetainedStateRegistry.saveValue on the holder's registry to save the current value, allowing it to be restored on the next visit with the same key.