containsPoint method

bool containsPoint(
  1. String point
)

Implementation

bool containsPoint(String point) {
  return p1 == point || p2 == point;
}