length property

double get length

The exact mathematical length of the line segment.

Implementation

double get length => p1.distanceTo(p2);