setPositionUpdateFunc method
Set the callback used to update a body's position. NOTE: It's not generally recommended to override this unless you call the default position update function.
Implementation
void setPositionUpdateFunc(void Function(Body body, double dt) positionFunc) => _body.setPositionUpdateFunc(positionFunc);