Heuristic<T> constructor

const Heuristic<T>(
  1. double estimateTotalCost(
    1. T
    )
)

Creates a heuristic from an estimateTotalCost function.

Implementation

const factory Heuristic(double Function(T) estimateTotalCost) = _Heuristic<T>;