setVelocityAxis method

void setVelocityAxis({
  1. double? x,
  2. double? y,
})

Implementation

void setVelocityAxis({double? x, double? y}) {
  _velocity.x = x ?? _velocity.x;
  _velocity.y = y ?? _velocity.y;
}