call method

Polygon call(
  1. dynamic point1,
  2. dynamic point2,
  3. dynamic point3
)

Implementation

Polygon call(point1, point2, point3) {
  return Polygon([point1, point2, point3]);
}