forComponent static method

Component2Bridge? forComponent(
  1. Component2 component
)

Returns the bridge instance associated with the given component.

This will only be available for components that are instantiated by the ReactDartComponentFactoryProxy2, and not when manually instantiated.

For internal/advanced use only.

Implementation

static Component2Bridge? forComponent(Component2 component) => bridgeForComponent[component];