cost property
num
cost
Computes the sum of all values along the edges of this path.
Implementation
num get cost => values.fold(0, (a, b) => a + b);
Computes the sum of all values along the edges of this path.
num get cost => values.fold(0, (a, b) => a + b);