PointerMoveEvent move(Point newLocation, { Duration timeStamp: Duration.ZERO })

Create a PointerMoveEvent to the given location.

By default, the time stamp on the event is Duration.ZERO. You can give a specific time stamp by passing the timeStamp argument.

Source

PointerMoveEvent move(Point newLocation, { Duration timeStamp: Duration.ZERO }) {
  assert(isDown);
  Offset delta = newLocation - location;
  _location = newLocation;
  return new PointerMoveEvent(
    timeStamp: timeStamp,
    pointer: pointer,
    position: newLocation,
    delta: delta
  );
}