operator == method
- dynamic other
Point is only equal to another
Point with the same coordinates.
bool operator ==(dynamic other) => // Cannot change parameter type to `Object` in case some class // inherits the type and uses their argument dynamically. other is Point && x == other.x && y == other.y;