public object PredictivePopTransitionKey :
NavMetadataKey<
AnimatedContentTransitionScope<Scene<*>>.(
@NavigationEvent.SwipeEdge Int
) -> ContentTransform?
>
The key for NavEntry.metadata or Scene.metadata to notify the NavDisplay of how the content should be animated when popping from backstack using a Predictive back gesture.
IMPORTANT NavDisplay only looks at the Scene.metadata to determine the final ContentTransform. It is the responsibility of the Scene.metadata to decide which ContentTransform to return, whether that be from the NavEntry.metadata or something custom.
HOW TO USE Within the metadata DSL, invoke MetadataScope.put and pass PredictivePopTransitionKey as the key. The value: AnimatedContentTransitionScope<Scene<*>>.(Int) -> ContentTransform? should be the ContentTransform to be used when popping from backstack using a Predictive back gesture.