Constructs an instance with the given x, y, and z values.
AccelerometerEvent(this.x, this.y, this.z);