getX method Null safety

double getX()

Implementation

double getX() {
  return _x;
}