distanceBetweenPoints static method
Get distance between points
from start point of calculation Point
to end point of calculation Point
Returns distance in meters
Example:
// Calculate distance between points
double distance = GeometryUtils.distanceBetweenPoints(point1, point2);
print("Distance between P1 and P2: ${distance.toStringAsFixed(2)} meters");
Implementation
static double distanceBetweenPoints(Point from, Point to) => $prototype.distanceBetweenPoints(from, to);