RenderAndroidView constructor

RenderAndroidView({@required AndroidViewController viewController, @required PlatformViewHitTestBehavior hitTestBehavior, @required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers })

Creates a render object for an Android view.

Implementation

RenderAndroidView({
  @required AndroidViewController viewController,
  @required this.hitTestBehavior,
  @required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) : assert(viewController != null),
     assert(hitTestBehavior != null),
     assert(gestureRecognizers != null),
     _viewController = viewController
{
  _motionEventsDispatcher = _MotionEventsDispatcher(globalToLocal, viewController);
  updateGestureRecognizers(gestureRecognizers);
}