PlatformViewRenderBox constructor

PlatformViewRenderBox({
  1. required PlatformViewController controller,
  2. required PlatformViewHitTestBehavior hitTestBehavior,
  3. required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
})

Creating a render object for a PlatformViewSurface.

Implementation

PlatformViewRenderBox({
  required PlatformViewController controller,
  required PlatformViewHitTestBehavior hitTestBehavior,
  required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) :  assert(controller.viewId > -1),
      _controller = controller {
  this.hitTestBehavior = hitTestBehavior;
  updateGestureRecognizers(gestureRecognizers);
}