operator + method

dynamic operator +(
  1. VectorDefinition other
)

Implementation

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