AStarFinder constructor

AStarFinder({
  1. bool allowDiagonal = false,
  2. bool dontCrossCorners = false,
  3. HeuristicFn? heuristic,
  4. int weight = 1,
})

Implementation

AStarFinder({this.allowDiagonal: false, this.dontCrossCorners: false,
    HeuristicFn? heuristic, this.weight: 1}) {
  this.heuristic = heuristic == null ? Heuristic.manhattan : heuristic;
}