operator + method

Point operator +(
  1. Point other
)

Implementation

Point operator +(Point other) => Point(x: x + other.x, y: y + other.y);