DragUpdateEvent constructor

DragUpdateEvent(
  1. int pointerId,
  2. Game game,
  3. DragUpdateDetails details
)

Implementation

DragUpdateEvent(this.pointerId, super.game, DragUpdateDetails details)
    : timestamp = details.sourceTimeStamp ?? Duration.zero,
      super(
        deviceStartPosition: details.globalPosition.toVector2(),
        deviceEndPosition:
            details.globalPosition.toVector2() + details.delta.toVector2(),
      );