distance method

double distance()

Returns the Euclidean distance (straight-line distance) between the line's start and page:.end end points.

Implementation

double distance() {
  return start.distanceTo(end);
}