Path constructor
Creates a new Path instance.
Implementation
Path({
required this.items,
}) : numStops = items.length,
intPathLengthFeet = items.fold<int>(
0,
(previousValue, item) => previousValue + item.distanceToPrevFeet,
) {
items.sort();
}