length property

double length

Implementation

double get length =>
    sqrt(pow(source.x - target.x, 2) + pow(source.y - target.y, 2));