addRenderView method
- RenderView view
Adds a RenderView to this binding.
The binding will interact with the RenderView in the following ways:
- setting and updating RenderView.configuration,
- calling RenderView.compositeFrame when it is time to produce a new frame, and
- forwarding relevant pointer events to the RenderView for hit testing.
To remove a RenderView from the binding, call removeRenderView.
Implementation
void addRenderView(RenderView view) {
final Object viewId = view.flutterView.viewId;
assert(!_viewIdToRenderView.containsValue(view));
assert(!_viewIdToRenderView.containsKey(viewId));
_viewIdToRenderView[viewId] = view;
view.configuration = createViewConfigurationFor(view);
}