RenderUiKitView constructor Null safety
- {required UiKitViewController viewController,
- required PlatformViewHitTestBehavior hitTestBehavior,
- required Set<
Factory< gestureRecognizers}OneSequenceGestureRecognizer> >
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);
}