Gravity constructor

const Gravity(
  1. num x,
  2. num y,
  3. num z
)

Constructor of the gravity class.

Implementation

const Gravity(this.x, this.y, this.z);