withComponentScope
fun withComponentScope(parentContext: ComponentContext, scope: Component, globalKey: GlobalKey?): ComponentContext
Creates a new ComponentContext instance scoped to the given component and sets it on the component.
Return
a new ComponentContext instance scoped to the given component
Parameters
parentContext
context scoped to the parent component
scope
component associated with the newly created scoped context
fun withComponentScope(parentContext: ComponentContext, scope: Component, globalKey: String?): ComponentContext