move method

PointerMoveEvent move (Offset 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.

Implementation

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