PlatformViewRenderBox constructor Null safety

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

Creating a render object for a PlatformViewSurface.

The controller parameter must not be null.

Implementation

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