setPosition method

void setPosition({
  1. required Vector2 pos,
})

Set the position of the body.

Implementation

void setPosition({required Vector2 pos}) => _body.setPosition(pos: pos);