weight property

double get weight

Total route weight/cost.

Example:

// Get total route weight
double weight = path.weight;
print("Route weight: $weight");

Implementation

double get weight;