ConstraintPositionToNode constructor
ConstraintPositionToNode({})
Creates a new Constraint that constrains the poistion of a node to be equal to the position of the targetNode. Optionally an offset can be used and also dampening. The targetNode doesn't need to have the same parent, but they need to be added to the same SpriteBox.
Implementation
ConstraintPositionToNode({
required this.targetNode,
this.dampening,
this.offset = Offset.zero,
});