Segment constructor

const Segment(
  1. Point startPoint,
  2. Point endPoint
)

Implementation

const Segment(this.startPoint, this.endPoint);