Heuristic<T>.every constructor
Returns a heuristic that uses the maximum of multiple possible goals.
This is useful when there are multiple goals and the heuristic should estimate the cost to reach the farthest one; the maximum cost is used, i.e. the most pessimistic estimate of the cost of any goal.
If an empty collection is used, the result is always double.maxFinite.
Implementation
const factory Heuristic.every(
List<Heuristic<T>> heuristics,
) = _EveryHeuristic<T>;