length method

double length()

Euclidian distance between start and end.

@return the length of the segment.

Implementation

double length() {
  if (_length != null) return _length!;
  _length = start.distance(end);
  return _length!;
}