A variable in Dart is non-nullable by default. How the heck x and y could be declared in a class without initialization having no compilation errors?
class Point {
double x, y;
// The main constructor for this class.
Point(this.x, this.y);
// Delegates to the main constructor.
Point.alongXAxis(double x) : this(x, 0);
}