hasPoint method

bool hasPoint(
  1. RefType point
)

Indicates whether point is one of the points in this connection.

Implementation

bool hasPoint(RefType point) => point1 == point || point2 == point;