operator == method
Whether other
is a point with the same coordinates as this point.
Returns true
if other
is a NullablePoint with x and y
coordinates equal to the corresponding coordinates of this point,
and false
otherwise.
Implementation
@override
bool operator ==(Object other) =>
other is NullablePoint && x == other.x && y == other.y;