addRenderView method

void addRenderView(
  1. RenderView view
)

Adds a RenderView to this binding.

The binding will interact with the RenderView in the following ways:

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);
}