drag method

  1. @override
void drag(
  1. Point<num> startPosition,
  2. Point<num> position
)
override

Moves the drag avatar to the new position.

The startPosition is the position where the drag started, position is the current position. Both are relative to the whole document (page coordinates).

Implementation

@override
void drag(Point startPosition, Point position) {
  setTranslate(position - startPosition);
}