getNextPoint method

String getNextPoint(
  1. String point
)

Implementation

String getNextPoint(String point) {
  if (p1 == point) {
    return p2;
  } else {
    return p1;
  }
}