lineLength method Null safety

double lineLength(
  1. Line line
)

Calculate length of line segment

Implementation

static double lineLength(Line line) => line.p1.distanceTo(line.p2);