length property

double get length

The length of the line segment.

Implementation

double get length => (to - from).length;