drag method
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);
}