AndroidMotionEvent constructor

AndroidMotionEvent({@required int downTime, @required int eventTime, @required int action, @required int pointerCount, @required List<AndroidPointerProperties> pointerProperties, @required List<AndroidPointerCoords> pointerCoords, @required int metaState, @required int buttonState, @required double xPrecision, @required double yPrecision, @required int deviceId, @required int edgeFlags, @required int source, @required int flags })

Creates an AndroidMotionEvent.

All parameters must not be null.

Implementation

AndroidMotionEvent({
  @required this.downTime,
  @required this.eventTime,
  @required this.action,
  @required this.pointerCount,
  @required this.pointerProperties,
  @required this.pointerCoords,
  @required this.metaState,
  @required this.buttonState,
  @required this.xPrecision,
  @required this.yPrecision,
  @required this.deviceId,
  @required this.edgeFlags,
  @required this.source,
  @required this.flags
}) : assert(downTime != null),
     assert(eventTime != null),
     assert(action != null),
     assert(pointerCount != null),
     assert(pointerProperties != null),
     assert(pointerCoords != null),
     assert(metaState != null),
     assert(buttonState != null),
     assert(xPrecision != null),
     assert(yPrecision != null),
     assert(deviceId != null),
     assert(edgeFlags != null),
     assert(source != null),
     assert(flags != null),
     assert(pointerProperties.length == pointerCount),
     assert(pointerCoords.length == pointerCount);