distanceToDestination method

double distanceToDestination([
  1. Point? start
])

Returns the Euclidean distance from the user's position to the final destination

Implementation

double distanceToDestination([Point? start]) {
  EpitaphVertex last = path.path.last as EpitaphVertex;
  return (start ?? _mappedPosition).distanceTo(last.point);
}