RenderUiKitView constructor Null safety

RenderUiKitView(
  1. {required UiKitViewController viewController,
  2. required PlatformViewHitTestBehavior hitTestBehavior,
  3. required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers}
)

Creates a render object for an iOS UIView.

The viewId, hitTestBehavior, and gestureRecognizers parameters must not be null.

Implementation

RenderUiKitView({
  required UiKitViewController viewController,
  required this.hitTestBehavior,
  required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) : assert(viewController != null),
     assert(hitTestBehavior != null),
     assert(gestureRecognizers != null),
     _viewController = viewController {
  updateGestureRecognizers(gestureRecognizers);
}