sendMotionEvent method

Future<void> sendMotionEvent (AndroidMotionEvent event)

Sends an Android MotionEvent to the view.

The Android MotionEvent object is created with MotionEvent.obtain. See documentation of MotionEvent.obtain for description of the parameters.

Implementation

Future<void> sendMotionEvent(AndroidMotionEvent event) async {
  await SystemChannels.platform_views.invokeMethod(
      'touch',
      event._asList(id),
  );
}